Commit 35e6ad1c authored by Stephen Thompson's avatar Stephen Thompson

Issue #1 added new transformer for each polydata

parent e6df0f61
......@@ -96,11 +96,11 @@ def populate_models(path_name, model_to_world):
transform = vtk.vtkTransform()
transform.SetMatrix(np2vtk(model_to_world))
transformer = vtk.vtkTransformPolyDataFilter()
transformer.SetTransform(transform)
for model in models:
print(model.source.GetCenter())
transformer = vtk.vtkTransformPolyDataFilter()
transformer.SetTransform(transform)
transformer.SetInputData(model.source)
target = vtk.vtkPolyData()
transformer.SetOutput(target)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment