How do you get original positions back out after picking from a transformed
object and extracting the closest vertex ?

I've tried saving the original object positions under some other component
name, and I am able extract these positions from the pick point, but not from
the closest vertex (the created component is lost since this entity is not a
field).

Since this approach didn't work, I marked "old positions" of the full object
and did an Include with min and max equal to closest vertex (transformed
positions), hoping to get a field with one data element in it. I could then
extract "old positions" of this element to get the original positions of the
closest vertex. The problem is that I can't get one data element using include.
If min=max, the field contains no elements. If I add some small value to the
max and subtract some small value from min, I get too many elements.

Is it possible to grab a specific data element from a field, or is there
another way to get original positions back from the closest vertex to the
(transformed) pick point ?

I typically Construct a field from bits and pieces returned by Pick. Select 'closest vertex' and send it to Construct origin; in parallel, Select 'old positions' and send it to (the same) Construct data. You should have a field with one position and one vector data item attached to it corresponding to the original position that you pushed over into a user-named data array ("old positions"). If you want to reattach other parts from Pick, use Replace(s) to add them to this little field. I don't think Include works on vectors: I can't remember but I think it may force the mag(a) on input so then you get all vectors with the included magnitude which is obviously worthless here.
Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]

Reply via email to