mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-08 05:38:12 +08:00
Modeling - Enhance intersection handling for closed curves in IntPatch_Intersection #298
This commit is contained in:
@@ -195,8 +195,11 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_Surface)& S1,
|
||||
aProjectedCurve.FirstParameter(),
|
||||
aProjectedCurve.LastParameter());
|
||||
Geom2dInt_GInter Intersector(AC, Precision::Confusion(), Precision::Confusion());
|
||||
if (Intersector.IsDone() && Intersector.IsEmpty())
|
||||
if (Intersector.IsDone()
|
||||
&& (Intersector.IsEmpty() || (AC.IsClosed() && Intersector.NbPoints() == 1)))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
Standard_FALLTHROUGH
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user