I am using CT image scans rendered into a 3d graphic. When the image is displayed in OpenGL the 3d image is smooth and clear - im happy with the image. When i however try to read the saved .stl file in wxpython, the image is more pixelated compared to the orignally displayed image in vtk.
Is there paramters that i may need to inlcude to reproduce a similar image to the orginal?
any advice will be much appreciated.
Many thanks in advance.
The code i used to open a .STL files using 3d rendered images from vtk is found on:
I think you mean that the surface from the STL file appears to not be
smooth. This is because STL does not store surface normal information
at the vertices, so your geometry is being rendered with flat shading
of the triangles.
To get a smoother appearance, generate surface normals with the
vtkPolyDataNormals filter. See, for example,
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?