Getting points coordinates
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/04/2003 at 16:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ;---------
How can I get the world coordinates of a point of a polygonal object? I mean, even if it is rotated, how can I get the global (world) coordinates of any point?
TIARui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/04/2003 at 22:30, xxxxxxxx wrote:
hi rui, you need to get the global matrix in coffee
var mat=op->GetMg();
then you need to multiply the points position by the global matrix:
var pos=mat->GetMulP(point);
if you then need to get a global points position but in local space what you need to do is invert the global matrix of the object first before you multiply the point so
var mat=op->GetMg();
mat->Invert();
var pos=mat->GetMulP(pointinglobalspace);hope this helps.