[Insight-developers] (no subject)

C. Aaron Cois cacst11+@pitt.edu
Wed, 01 Aug 2001 14:46:57 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0071_01C11A98.D03C79E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a really basic, but bothersome question for someone.  Say i have =
a mesh declared as such:


typedef itk::Mesh<double>  Mesh;

Mesh::Pointer m_mesh;=20


Then i have an itk::Point, with a value in it:


itk::Point<double, 3> position;


I try to call=20

m_mesh->SetPoint(index, position);

where index is just an integer, and i get the error:

error C2664: 'SetPoint' : cannot convert parameter 2 from 'class =
itk::Point<double,3>' to 'class itk::Point<float,3>'
        No constructor could take the source type, or constructor =
overload resolution was ambiguous

My questions is, how do i template the mesh to be using =
itk::Point<double>?  (I thought i had, but perhaps i was incorrect)

                                                                         =
                                                               Aaron

------=_NextPart_000_0071_01C11A98.D03C79E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a really basic, but bothersome =
question for=20
someone.&nbsp; Say i have a mesh declared as such:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR>typedef =
itk::Mesh&lt;double&gt;&nbsp;=20
Mesh;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Mesh::Pointer m_mesh; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then i have an itk::Point, with a value =
in=20
it:<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>itk::Point&lt;double, 3&gt; =
position;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I try to call </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>m_mesh-&gt;SetPoint(index, =
position);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>where index is just an integer, and i =
get the=20
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>error C2664: 'SetPoint' : cannot =
convert parameter=20
2 from 'class itk::Point&lt;double,3&gt;' to 'class=20
itk::Point&lt;float,3&gt;'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
No=20
constructor could take the source type, or constructor overload =
resolution was=20
ambiguous</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My questions is, how do i template the =
mesh to be=20
using itk::Point&lt;double&gt;?&nbsp; (I thought i had, but perhaps i =
was=20
incorrect)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
Aaron</DIV></FONT></BODY></HTML>

------=_NextPart_000_0071_01C11A98.D03C79E0--