<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi all,<BR><BR>I'm attempting to visualize, with color, an itkMesh in VTK.
I want the point data associated with each point in the mesh to dictate a color
at that point. What seems to be happening is the point data is not present in
the vtkUnstructuredGrid after conversion from an itkMesh.<BR><BR>My code goes
something like this:<BR>1. Convert a binary image to a mesh with
itkBinaryMask3DMeshSource<BR>2. Iterate through the mesh points and create point
data<BR>3. Set the point data in the mesh <--- values are verified by
iterating through them afterward<BR>4. Convert the itkMesh to a
vtkUnstructuredGrid (using itk2vtk example)<BR>5. Set the grid as input to a
vtkMapper<BR>6. Set ScalarVisibilityOn() and SetScalarModeToUsePointData() for
the mapper<BR>7. Set the scalar range for the mapper <-- printing the scalar
range here yields (0, 1) =(<BR>8. Add the mapper as input to a vtkActor and
render <-- white surface =(<BR><BR>Any ideas why the point data isn't
transferring to the vtkUnstructuredGrid? Or is it not supposed to? Am I doing
something unintended? <BR><BR>This is more of a VTK question, but is there a way
to directly set the point data in a vtkUnstructuredGrid? I couldn't seem to find
the functionality to do so.<BR><BR>Thanks for any help</DIV></BODY></HTML>