[vtkusers] Data from a point from vtkStructuredPoints/vtkImageData
Karl Mårtensson
karma140 at student.liu.se
Wed Apr 27 08:26:41 EDT 2005
Hi vtkers,
I use vtk to read a structuredPoints. Each point has a vector that defines
velocity in flowing water.
Now I would like to extrude this information for a particular position. I
have started to experiment with the
StructuredPoints::FindAndGetCell but havent figured out exactly how to use
it or and Im not even sure if Im on the right track.
Does anyone of you do something similar and if so could you give me a hand?
I want to do something similar to:
//Pseudo code
vtkStructuredPointsReader * reader = vtkStructuredPointsReader::New();
vtkStructuredPoints * structuredPoints = reader->GetOutput();
double position(1.0, 1.0, 1.0);
double tol2;
int subId;
double * pcoords;
double * weights;
vtkCell * cell = structuredPoints->FindAndGetCell(position, NULL, NULL,
tol2, subId, pcoords, weights);
vec3 dataVector = cell -> getData().
Pseudo code//
Best regards
/ Karl Mårtensson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050427/cb25034b/attachment.htm>
More information about the vtkusers
mailing list