Skip to content

Commit a97956d

Browse files
author
Isabel
committed
minor changes
1 parent f4dbffc commit a97956d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

OCCUtils/Construct.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def trim_wire(wire, shapeLimit1, shapeLimit2, periodic=False):
693693

694694

695695
def 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

706706
def 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

713713
def 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

722722
def 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
#===========================================================================

OCCUtils/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
##along with pythonOCC. If not, see <http://www.gnu.org/licenses/>
1717

1818
from OCC.Core.TopoDS import TopoDS_Shell
19-
from OCC.ShapeAnalysis import ShapeAnalysis_Shell
19+
from OCC.Core.ShapeAnalysis import ShapeAnalysis_Shell
2020

2121
from OCCUtils.Topology import Topo
2222
from OCCUtils.base import BaseObject, GlobalProperties

OCCUtils/types_lut.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
from OCC.Core.TopoDS import topods, TopoDS_Shape
2121
from OCC.Core.BRep import BRep_Tool_Surface
2222
from OCC.Core.TopAbs import *
23-
from OCC.Core.Geom import Handle_Geom_CylindricalSurface, Handle_Geom_Plane
23+
# from OCC.Geom import Handle_Geom_CylindricalSurface, Handle_Geom_Plane
24+
#Handle_Geom_CylindricalSurface, Handle_Geom_Plane
2425

2526

2627
class ShapeToTopology(object):

0 commit comments

Comments
 (0)