[vtkusers] get vtkImageData point
arwtyxouymz
arw.tyx-ouy_mz at ezweb.ne.jp
Fri Oct 20 01:10:31 EDT 2017
Thank you Bill!
I read the document of vtkImageData::ComputeStructuredCoordinates, but I
don't know the parameters.
The definition is :
virtual int vtkImageData::ComputeStructuredCoordinates(const double x[3],
int ijk[3], double pcoords[3])
I know x is the real world x-y-z coordinate, and ijk is image point, but
what is pcoords???
pcoords is the parametric coordinates in the cell, but i don't know that.
And i thought the usage :
const double p[3] = {x, y, z}; // already know
double pcoords[3] = {◯, △, ◇}; // already know
int ijk[3]; // I want know
int check = image->ComputeStructuredCoordinates(p, ijk, pcoords);
if (check == 1) {
std::cout << "(" << ijk[0] << ", " << ijk[1] << ", " << ijk[2] << ")" <<
std::endl;
}
Is this right?
please help me!
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list