How to get a geometry size?

Topics: User Forum
Nov 27, 2009 at 3:40 AM

Is there any way to know max. width and max. height of a geometry?

Thanks for your help.

Nov 28, 2009 at 3:15 PM

You can get the geometry's vertices. Then get the maximum difference value in the x and y values of the vectors


Nov 28, 2009 at 8:06 PM

The Axis Aligned Bounding Box (AABB) of the geometry is always the maximum size of the geometry. - It contains the whole geometry. It depends if you want the size of the geometry with it's current rotation or without it.