Skip to content
GitLab
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
8fcad32d
Commit
8fcad32d
authored
Jan 27, 2020
by
Dennis Gläser
Browse files
[isection][cylsurf-planargeom] avoid unphysical negative axis lengths
parent
c1a37dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/intersection/algorithms/algo_cylsurface_planargeom.hh
View file @
8fcad32d
...
...
@@ -143,7 +143,8 @@ intersect_cylinderSurface_planarGeometry(const CylinderSurface<ctype>& cylSurfac
majAxis
.
invert
();
using
std
::
cos
;
const
ctype
majAxisLength
=
cylSurface
.
radius
()
/
cos
(
dn
.
Angle
(
ca
));
using
std
::
abs
;
const
ctype
majAxisLength
=
abs
(
cylSurface
.
radius
()
/
cos
(
dn
.
Angle
(
ca
)));
const
auto
&
cylAxisLine
=
cylSurface
.
centerSegment
().
supportingLine
();
const
auto
center
=
std
::
get
<
Point
>
(
intersect
(
faceGeomPlane
,
cylAxisLine
,
eps
));
infEllipse
=
Ellipse
(
center
,
majAxis
,
minAxis
,
majAxisLength
,
cylSurface
.
radius
());
...
...
@@ -174,7 +175,7 @@ intersect_cylinderSurface_planarGeometry(const CylinderSurface<ctype>& cylSurfac
const
auto
p1
=
OCCUtilities
::
point
(
v1
);
const
auto
p2
=
OCCUtilities
::
point
(
v2
);
if
(
!
faceGeomIsParallel
)
if
(
faceGeomIsOrthogonal
||
!
faceGeomIsParallel
)
{
// select the arc whose center is on the set of given edges
EllipseArc
arc1
(
infEllipse
,
p1
,
p2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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