[Insight-users] MeshFromPolyData and MeshFromUnstructuredGrid -> fix

Mathieu Malaterre malat@free.fr
Tue, 18 Feb 2003 11:51:25 +0100


Hi all,

   I had some problems with these two readers.
   Cells and CellData seems to be not updated correctly.

   I have add a line in vtk2itk
line 162:
    mesh->SetCellData(cellId, 3.0);

Also for those who want to use my MeshFromPolyData you should also add 
this line.



As for itkDeformableMesh3DFilter it would be nice if m_Scale could be 
initialize to [1, 1, 1] by default instead of anything.
Otherwise if m_Scale is aproximatively 0 then locations.Value() become 
zero thus ComputeNormals fails to determine normals based on null vectors.


HTH
mathieu