Hi, I'm writing a program to convert a CT DICOM file into an STL file suitable for stereolitography but allways have problems with generated mesh; probably first and last slice remain open and not closed as it should be for stereolitography. Has anybody an idea? Thanks in advance.
<br><br>Here is a peace of tcl code as example:<br><br>package require vtk<br>package require vtkinteraction<br>package require vtktesting<br><br>vtkPolyDataReader pdreader<br> pdreader SetFileName "inputfile.vtk"
<br><br>vtkTriangleFilter tf<br> tf SetInput [pdreader GetOutput]<br><br>vtkPolyDataNormals normals<br> normals SetInput [tf GetOutput]<br><br>vtkSTLWriter stlBinary<br>stlBinary SetInputConnection [tf GetOutputPort]
<br>stlBinary SetFileName "outfile.stl"<br>stlBinary SetFileType 2<br>stlBinary Write<br>