<div>Hey gus,</div>
<div> </div>
<div>I am new to VTK, and trying to conver a OBJ file to a STL file. I tried the following code section, but it didn't work. It did created a STL file, but with nothing inside, only 1KB. Any help and direction would be appreciated. </div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div> vtkSmartPointer<vtkOBJReader> readerOBJ = vtkSmartPointer<vtkOBJReader>::New();<br> readerOBJ->SetFileName(filename.c_str());<br> readerOBJ->Update();</div>
<div> </div>
<div> vtkSmartPointer<vtkSTLWriter> stlWriter = vtkSmartPointer<vtkSTLWriter>::New();<br> stlWriter->SetFileName("Bobcat.stl");<br> stlWriter->SetInputConnection(readerOBJ->GetOutputPort());<br>
stlWriter->Write();<br><br>-- <br></div>
<div>Chao Wang<br>Graduate Research Assistant<br>The Durham School of Architectural Engineering and Construction<br>University of Nebraska - Lincoln<br>The Peter Kiewit Institute <br>1110 S. 67th Street 118A</div>
<div>Omaha, NE 68182-0571<font face="arial, sans-serif"><br></font></div><br>