Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
775164f3
Commit
775164f3
authored
Jan 18, 2020
by
Dennis Gläser
Browse files
[constraint][isdist] implement distance for ellipses
parent
86ffd34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/entitynetwork/impl_distancetoboundary.hh
View file @
775164f3
...
...
@@ -33,8 +33,9 @@
#include
<frackit/distance/distancetoboundary.hh>
#include
<frackit/distance/pointonboundary.hh>
#include
<frackit/occ/breputilities.hh>
#include
<frackit/magnitude/magnitude.hh>
#include
<frackit/intersection/intersection
traits
.hh>
#include
<frackit/intersection/
empty
intersection.hh>
#include
<frackit/geometry/point.hh>
#include
<frackit/geometry/segment.hh>
...
...
@@ -129,16 +130,11 @@ namespace ConstraintImpl {
/*!
* \brief Overload for ellipse intersections on cylinder surfaces.
*/
template
<
class
ctype
,
int
wd
,
class
ctype2
,
class
ctype3
>
bool
isAdmissibleDistanceToBoundary
(
const
Ellipse
<
ctype
,
wd
>&
arc
,
const
CylinderSurface
<
ctype2
>&
entity
,
ctype3
threshold
)
{
// for this we would first have to intersect the ellipse with the
// upper and lower bounding circles to make sure there is no intersection
// point!
throw
std
::
runtime_error
(
std
::
string
(
"TODO: IMPLEMENT"
));
}
template
<
class
ctype
,
int
wd
,
class
Geo
,
class
ctype2
>
bool
isAdmissibleDistanceToBoundary
(
const
Ellipse
<
ctype
,
wd
>&
ellipse
,
const
Geo
&
entity
,
ctype2
threshold
)
{
return
computeDistanceToBoundary
(
ellipse
,
entity
)
>=
threshold
;
}
/*!
* \brief Overload for edge intersections on disks.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment