[vtkusers] vtkTransform::MultiplyPoint() ... Mysterious behavior !
Sebastien Auclair
sxa at fluent.com
Tue May 20 09:05:01 EDT 2003
Greetings !
A wish to apply a transformation filter to the points of a PolyData.
If i simply do :
for (int i = 0; i < pointCount;
{
temp = m_polydata->GetPoint( i );
transform->MultiplyPoint (buffer,buffer);
}
Only half (or so) of the points will be modified !!! And the transformation is a translation that should modifiy all points.
But if i do something "Time Cousuming" like :
for (int i = 0; i < pointCount; i++){
temp = m_polydata->GetPoint( i );
buffer [0] = (temp)[0];
buffer [1] = (temp)[1];
buffer [2] = (temp)[2];
transform->MultiplyPoint (buffer,buffer);
(temp)[0] = buffer [0];
(temp)[1] = buffer [1];
(temp)[2] = buffer [2];
}
Then it works !!!!
Anyone knows why ?
Thanks !
____________________________________________
Seb
More information about the vtkusers
mailing list