Hi<br>In all probability the cell and point normals are lost. 3DS meshes have both and are imported by the importer. Clean may be removing them. Try using vtkPolyDataNormals between clean and curvature. Set it up to compute both point and cell normals. Compare the result with that for slices. It is possible that vertex order in some cells gets changed in the pipeline (doubt it) in which case enable auto-orient normals.<br>
HTH<br>Vidyadhar<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 10:16 PM, Lane Phillips <span dir="ltr"><<a href="mailto:phillips@cs.umn.edu">phillips@cs.umn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a 3DS model and I want to do analysis of the surface curvature. I use a vtk3DSImporter to load the model and I notice that the model is sliced into multiple meshes, so I take the vtkPolyData from each mesh and send it through a vtkCurvatures and, magically, VTK displays the curvature as color on the surface, and I can spin the model at interactive rates.<br>
<br>
I don't want to deal with multiple meshes, so I add each vtkPolyData to a vtkAppendPolyData object, and send the output of that through the vtkCurvatures object. VTK still displays the curvatures on the surface, but now it's extremely slow to rotate. Maybe the slices cached better? However, speed is not my concern right now...<br>
<br>
Now I have all the meshes in one vtkPolyData, but I assume they are not contiguous yet, so I run the output of the vtkAppendPolyData through a vtkCleanPolyData, hoping this will merge duplicate points and stitch the meshes together. I send the output of vtkCleanPolyData through vtkCurvatures, but now the surface is rendered in one color.<br>
<br>
So my question is, what information is needed by vtkCurvatures that is getting destroyed by vtkCleanPolyData?<br>
<br>
I'm attaching my code; sorry it's a mess. The important lines are 81 through 127.<br>
<br>
Thanks,<br><font color="#888888">
Lane<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>