diff --git a/invesalius/data/surface.py b/invesalius/data/surface.py index 4df6d19..0b8dce9 100644 --- a/invesalius/data/surface.py +++ b/invesalius/data/surface.py @@ -161,7 +161,15 @@ class SurfaceManager(): normals.AddObserver("ProgressEvent", lambda obj, evt: UpdateProgress(normals, "Orienting normals...")) polydata = normals.GetOutput() - + + #======= Temporary Code ======= + stl = vtk.vtkSTLWriter() + stl.SetFileTypeToBinary() + stl.SetInputConnection(normals.GetOutputPort()) + stl.SetFileName("surface.stl") + stl.Write() + #============================== + # TODO (Paulo): Why do we need this filter? # without this the volume does not appear stripper = vtk.vtkStripper() -- libgit2 0.21.2