mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-12 09:59:03 +08:00
Shape Healing, STP Import - Revolved shape in STEP file is imported inverted (#699)
Make the degenerated torus bounded in two values of parameters processed as a regular to insert a seam edge properly.
This commit is contained in:
@@ -1687,6 +1687,12 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
|
||||
Handle(Geom_ToroidalSurface) aTorSurf = Handle(Geom_ToroidalSurface)::DownCast(mySurf->Surface());
|
||||
Standard_Boolean anIsDegeneratedTor =
|
||||
(aTorSurf.IsNull() ? Standard_False : aTorSurf->MajorRadius() < aTorSurf->MinorRadius());
|
||||
// if the second wire is not null, we don't need mark the torus as degenerated
|
||||
// and should process it as a regular one.
|
||||
if (anIsDegeneratedTor && !w2.IsNull())
|
||||
{
|
||||
anIsDegeneratedTor = Standard_False;
|
||||
}
|
||||
|
||||
if (w1.IsNull())
|
||||
return Standard_False;
|
||||
|
||||
Reference in New Issue
Block a user