From 14dec3158c2ff71112ee44cf363bef45ba642ecd Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Mon, 29 Jun 2009 16:54:50 +0000 Subject: [PATCH] ADD: Generating STL to create the surface --- invesalius/data/surface.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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