# How to calculate area ?

This topic is 5219 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi How to calculate area of three diamension convex or non-convex object area i mean dimension (Height,Width,Length) . I need entrie object dimension in max and min . So how can i calculate it ? any suggestion ??

##### Share on other sites
to compute the volume of an arbitrary closed mesh:

* make sure your surface mesh is triangulated (no higher polys)

* imagine a virtual tetrahedron using the three points of each triangle and the center of gravity (average of all points as an approximation)

* add in the area of that tetrahedron
(http://mathworld.wolfram.com/Tetrahedron.html, start at (24))
times the sign of [(center_of_tri - cg) dot (tri_normal)]

do this for the entire mesh.

##### Share on other sites
Quote:
 Original post by nareshn2003Hi How to calculate area of three diamension convex or non-convex object area i mean dimension (Height,Width,Length) . I need entrie object dimension in max and min . So how can i calculate it ?any suggestion ??

i suggest you to explain what you want more cleanly.

You want to
1:find surface area of your object?
or
or
3:find smallest axis-aligned box that your object is inside that box?
4:something else?

##### Share on other sites
HI

>>>>1:find surface area of your object?

== Yes I want to find surface area of object

or

No I don't want to find volume

or
3:find smallest axis-aligned box that your object is inside that box?
>>>No

Basically I want to find object dimension length, width and height in Min and Max. I mean Min Dimension and max Dimension in entire object.

If u have any confusion let me know

##### Share on other sites
It's actually damn confusing. You have to explain better.

Actually,

- "find smallest axis-aligned box that your object is inside that box"

and

- "find object dimension length, width and height in Min and Max. I mean Min Dimension and max Dimension in entire object."

seem to be the same.

##### Share on other sites
I think what he really wants is the minimum ORIENTED box enclosing any 3D shape. Right this time ? I suppose then the algo is well documented. Probably some eigen vector stuff involved.

Without precise vocabulary and concepts geometry becomes meaningless.

##### Share on other sites
yes, i think, minimum oriented box (i'd say , just "minimum box", or for websearch, "minimum bounding box")

some other pages:
1
some sources
look at:
"tight-fitting bonding-box that contains a given input point-set.the bounding box is arbitrarly oriented" i think it's yet another name for this....

(now everyone will come to gamedev for this info :)

1. 1
2. 2
Rutin
19
3. 3
khawk
18
4. 4
5. 5

• 9
• 12
• 16
• 26
• 10
• ### Forum Statistics

• Total Topics
633769
• Total Posts
3013755
×

## Important Information

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!