In [1]:
from PySide.QtGui import QApplication
from viewer.vtkviewer import SimpleVtkViewer
import numpy as np
from occmodel import Tools
from geotools import Plane
In [4]:
%gui qt4
try:
a = QApplication([])
except:
pass
vtkWin = SimpleVtkViewer()
vtkWin.hide_axes()
In [5]:
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 [ ]: