In [4]:
%gui qt

from viewer.vtkviewer import SimpleVtkViewer, get_QApplication

import numpy as np

from occmodel import Tools
from geotools import Plane

In [ ]:
try:
    a = get_QApplication([])
except:
    pass

vtkWin = SimpleVtkViewer()
vtkWin.hide_axes()

In [ ]:
stepFile = './bearing.step'

shapeList = Tools.readSTEP(stepFile)

for shape in shapeList:
    actor = shape.toVtkActor()
    vtkWin.add_actor(actor)
    

# If the VTK window is blank/white, click on the window and hit 'r'  to zoom to fit.

# See OCCT_Bottle_Example for mouse and keyboard commands for interacting with the rendered STEP file.

In [ ]: