Hi
> 1) Given a Point3d in world space, how do I calculate what this Point
> should be in the LineArray's local coordinate system and
This lineArray certainly belongs to some Shape3D, let's call it shape, for the sake of
example. Suppose also that your point is called point. Do:
Transform3D t = new Transform3D();
shape.getLocalToVworld(t); // shape is the Shape3D to which your linearray belongs
t.invert();
t.transform(point); // "point" first contained your point in world coordinates and
after this call will contain local lineArray coordinates
> 2) Given a Point3d in the line arrays coord system, how do I transform
> this to its position in world space.
Try this :
Transform3D t = new Transform3D();
shape.getLocalToVworld(t);
t.transform(point); // "point" first contained your point local coordinates, and now
will have world coordinates
>
> I assume I can use the getLocalToVworld() method but I do not know how
> to apply the resulting transform to a Point3d to get the transformed
> coordinate. I assume this is a simple operation but I can't
> quite get it
> working.
>
Hope this helps
Fabio
==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".