Commit 14dec3158c2ff71112ee44cf363bef45ba642ecd
1 parent
99740a22
Exists in
master
and in
68 other branches
ADD: Generating STL to create the surface
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
invesalius/data/surface.py
... | ... | @@ -161,7 +161,15 @@ class SurfaceManager(): |
161 | 161 | normals.AddObserver("ProgressEvent", lambda obj, evt: |
162 | 162 | UpdateProgress(normals, "Orienting normals...")) |
163 | 163 | polydata = normals.GetOutput() |
164 | - | |
164 | + | |
165 | + #======= Temporary Code ======= | |
166 | + stl = vtk.vtkSTLWriter() | |
167 | + stl.SetFileTypeToBinary() | |
168 | + stl.SetInputConnection(normals.GetOutputPort()) | |
169 | + stl.SetFileName("surface.stl") | |
170 | + stl.Write() | |
171 | + #============================== | |
172 | + | |
165 | 173 | # TODO (Paulo): Why do we need this filter? |
166 | 174 | # without this the volume does not appear |
167 | 175 | stripper = vtk.vtkStripper() | ... | ... |