<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>You may have a look at the method CastFrom in itk::Point...</div><div><br></div><div>Regards,</div><div>Arnaud</div><div><br><div><div>On Oct 9, 2008, at 5:54 AM, nadan zhu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">As SimplexMeshGeometry::PointType is defined as itk::Point<double,3><br>in itkDeformableSimplexMesh3DFilter.txx(164)<br><span class="HcCDpe"></span>data->pos = points.Value(); //error because itk::Point<double,3> = itk::Point<float,3><br> <br>One possible way to solve it is to make class SimplexMeshGeometry template or<br>overload function operator= in itk::Point<br>template<class PointValueType><br>Point& operator= (const Point<PointValueType,NPointDimension> & r)<br> {<br> const FixedArray<PointValueType, NPointDimension> & fa = r;<br> BaseArray::operator=(fa);<br> return *this;<br>}<br><br><br><br>regards<br><br>nadan<br><br><div class="gmail_quote">On Thu, Oct 9, 2008 at 7:52 PM, Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</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;">Hi Insight Users,<br> <br> I am trying to use itk::DeformableSimplexMesh3DFilter with a specific<br> mesh trait. However I am encountering compilation errors. Can someone<br> point out what I am doing wrong?<br> <br> Changing TCoordRep (below) from float to double makes the error go<br> away. However, I would like the pixel type and coord rep type to be<br> the same (ie. float). Why is this not allowed?<br> <br></blockquote></div><br></div> <span><ATT00001.txt></span></blockquote></div><br></div></body></html>