[vtkusers] STLWriter producing pixelated images?
Cory Quammen
cory.quammen at kitware.com
Tue Jun 14 09:56:36 EDT 2016
Sorry, I should have been more specific. Add the vtkPolyDataNormals
filter after you load the STL file with the vtkSTLReader.
Cory
On Tue, Jun 14, 2016 at 3:45 PM, Hp07 <hinesh_88 at hotmail.co.uk> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--
Cory Quammen
R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list