[Insight-developers] mesh data structure problem.

Ting Chen chenting@graphics.cis.upenn.edu
Tue, 27 Feb 2001 16:52:42 -0600


I write the following code in my itkDeformableMesh class:

....
  float ds[3], d[3]={0, 0, 0};
  SetPoint(1, (PointType)d);
  GetPoint(1, (PointType*)ds);
....

but I found out that ds={-1.074e+008, 0, 0} after the operation.

if I do
....
  float ds[3], d[3]={0, 0, 0};
  SetPoint(0, (PointType)d);
  GetPoint(0, (PointType*)ds);
....

ds = {-1.074e+008, -1.074e+008, -1.074e+008}

it seems the first element in the container has problems here. what is the
problem here?
thanks
ting