[vtkusers] STLWriter producing pixelated images?

Hp07 hinesh_88 at hotmail.co.uk
Tue Jun 14 09:45:59 EDT 2016


Hi Cory, 

Many thanks for the reply. 

I looked into vtkPolyDataNormals as you mentioned. Can you please see below
the images generated from VTK (right) and wxpython (left) which was
generated using the vtkPolyDataNormals data and saving it in STL. 

Is that wat you were referring too? writing the STL using the
vtkPolyDataNormals?

norm = vtk.vtkPolyDataNormals()
        norm.SetInputConnection(DicomMC.GetOutputPort())
        norm.Update()

writer = vtk.vtkSTLWriter()
        writer.SetFileName(stlfilePath)
        writer.SetInputConnection(normals.GetOutputPort())
        writer.SetFileTypeToBinary()
        writer.Write()



<http://vtk.1045678.n5.nabble.com/file/n5738659/wxpythonvsvtk.png> 






--
View this message in context: http://vtk.1045678.n5.nabble.com/STLWriter-producing-pixelated-images-tp5738653p5738659.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list