I was going to do something like this:<br><br> class PTXPoint<br> {<br> public:<br> typedef itk::Point<double, 3> PointType;<br> typedef itk::RGBPixel<unsigned char> ColorType; //note: the ptx format uses unsigned chars for color<br>
<br> PointType Point;<br> ColorType Color;<br> double Intensity;<br> <br> };<br><br>And then create a mesh of the new PTXPoint type:<br>typedef itk::Mesh<PTXPoint, 3> MeshType;<br>
<br>But that doesn't make sense, because the dimensionality of the coordinates is already defined inside PTXPoint. I really just want a <br>typedef itk::Mesh<double, 3> MeshType;<br><br>but where each point in the mesh has a Color and Intensity associated with it. What's the best way to do that?<br>
<br clear="all">Thanks,<br><br>David<br>