From Vectorworks Developer
Revision as of 15:55, 10 February 2016 by Orso.b.schmid
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionReturns the center of gravity of a 3D object. The function returns TRUE if the values were found.
VAR xCG :REAL;
VAR yCG :REAL;
VAR zCG :REAL) : BOOLEAN;
def vs.Centroid3D(obj): return (BOOLEAN, xCG, yCG, zCG)
obj HANDLE The objectt from whci to calculate the center of gravity xCG REAL The x component of the center of gravity. yCG REAL The y component of the center of gravity. zCG REAL The z component of the center of gravity.