@@ -693,7 +693,7 @@ def trim_wire(wire, shapeLimit1, shapeLimit2, periodic=False):
693693
694694
695695def fix_shape (shp , tolerance = 1e-3 ):
696- from OCC .ShapeFix import ShapeFix_Shape
696+ from OCC .Core . ShapeFix import ShapeFix_Shape
697697 fix = ShapeFix_Shape (shp )
698698 fix .SetFixFreeShellMode (True )
699699 sf = fix .FixShellTool () #.GetObject()
@@ -704,14 +704,14 @@ def fix_shape(shp, tolerance=1e-3):
704704
705705
706706def fix_face (shp , tolerance = 1e-3 ):
707- from OCC .ShapeFix import ShapeFix_Face
707+ from OCC .Core . ShapeFix import ShapeFix_Face
708708 fix = ShapeFix_Face (shp )
709709 fix .SetMaxTolerance (tolerance )
710710 fix .Perform ()
711711 return fix .Face ()
712712
713713def fix_small_faces (shp , prec , tolerance = 1e-3 ):
714- from OCC .ShapeFix import ShapeFix_FixSmallFace
714+ from OCC .Core . ShapeFix import ShapeFix_FixSmallFace
715715 fix = ShapeFix_FixSmallFace ()
716716 fix .Init (shp )
717717 fix .SetPrecision (prec )
@@ -720,12 +720,12 @@ def fix_small_faces(shp, prec, tolerance=1e-3):
720720 return fix .FixShape ()
721721
722722def fix_solid (shp , tolerance = 1e-3 ):
723- from OCC .ShapeFix import ShapeFix_Solid
723+ from OCC .Core . ShapeFix import ShapeFix_Solid
724724 fix = ShapeFix_Solid (shp )
725725 fix .SetCreateOpenSolidMode (True )
726726 fix .SetMaxTolerance (tolerance )
727727 fix .Perform ()
728- print (dir (fix ))
728+ # print(dir(fix))
729729 return fix .Solid ()
730730
731731#===========================================================================
0 commit comments