Skip to content

Commit 97c5df5

Browse files
authored
Refactor CylinderShaft class and fix display call
1 parent 32b4b89 commit 97c5df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bladex/cylinder_shaft.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import OCC.Core.TopoDS
1+
""" Cylinder Shaft """
22
from OCC.Display.SimpleGui import init_display
33
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeCylinder
44
from OCC.Core.gp import gp_Pnt, gp_Dir, gp_Ax2
55

66

7-
class CylinderShaft(object):
7+
class CylinderShaft:
88
"""
99
Cylinder shaft construction.
1010
@@ -50,4 +50,4 @@ def display(self):
5050
shaft_solid = self.generate_solid()
5151
display, start_display = init_display()[:2]
5252
display.DisplayShape(shaft_solid, update=True)
53-
start_display()
53+
start_display()

0 commit comments

Comments
 (0)