February 19, 2002
at 12:00 pm /
#10334
Hi George,
]Points coordinates are with respect to an origin defined by the location of their parent group.
Yes.
]If a group is rotated, those coordinates do not change. The orientation property of the group changes.
Yes.
]If a group is translated, those coordinates do not change. The position property of the group changes.
Yes.
]The object.rotatepoint method uses the axes of the local group for the rotation.
Kinda. The rotate point method uses the axis that you provide. If you are rotating an object’s point and set the axis to 0,1,0 then yes. The axis is your choice. You could make it the normal of a face and then rotate the the face points around that axis if you wanted etc.
]object.transform changes coordinates to world coordinates. So in effect it adds the group location to all point coordinates.
Kinda. It all takes into account the orientation of the object so it isn’t a strict andquot;addandquot;.
]The group location doesn’t change, so the object is moved within the group.
That is the net effect. Though typically you use the andquot;Transformandquot;/andquot;InverseTranformandquot; to temporarily move an object to world coordinates because you want to work on it in world coordinates, or perhaps move it to another group.
]Things I don’t understand:What do the parameters of GetOrientation mean?
object.GetOrientation(RelativeGroup As Variant,
DirX As Variant,
DirY As Variant,
DirZ As Variant,
UpX As Variant,
UpY As Variant,
UpZ As Variant)
You’ll probably want to look at this message:
[img:1l0r2al3]http://www.amabilis.com/cgi-bin/YaBB/YaBB.cgi?board=3DCProScriptingandamp;action=displayandamp;num=999401523[/img:1l0r2al3]
<!– m –><a class="postlink" href="http://www.amabilis.com/cgi-bin/YaBB/YaBB.cgi?board=3DCProScriptingandamp;action=displayandamp;num=999401523">http://www.amabilis.com/cgi-bin/YaBB/Ya … =999401523</a><!– m –>
(You likely didn’t find it since it is under andquot;SetOrientationandquot; not andquot;GetOrientationandquot; <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!– s:) –>)
Richard