mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 11:46:33 +00:00
Alternative implementation to #801
This commit is contained in:
@@ -558,7 +558,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTrimmedCurve* l, TopoDS_Wire&
|
|||||||
flts[1] -= M_PI / 2.;
|
flts[1] -= M_PI / 2.;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( isConic && ALMOST_THE_SAME(fmod(flts[1]-flts[0],M_PI*2.),0.) ) {
|
// Fix from @sanderboer to compare using model tolerance:
|
||||||
|
if (isConic && ALMOST_THE_SAME(fmod(flts[1]-flts[0],M_PI*2.), 0., getValue(GV_PRECISION))) {
|
||||||
e = BRepBuilderAPI_MakeEdge(curve).Edge();
|
e = BRepBuilderAPI_MakeEdge(curve).Edge();
|
||||||
} else {
|
} else {
|
||||||
BRepBuilderAPI_MakeEdge me (curve,flts[0],flts[1]);
|
BRepBuilderAPI_MakeEdge me (curve,flts[0],flts[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user