Archived

This topic is now archived and is closed to further replies.

amish1234

area of a triangle in 3d space

Recommended Posts

I need to calculate the surface area of triangles in 3d space. For a triangle in 2D space it''s just length*height/2. I suppose I could rotate the triangle so that it lies in an axis-aligned plane, and then do length*height/2, but I was wondering if there is just some formula I can use. It would be interesting to see if I can use the plane equation for the plane the triangle lies in to somehow compensate for it not being in an axis-aligned plane. Proceeding on a brutal rampage is the obvious choice.

Share this post


Link to post
Share on other sites
the surface area can be found while calculating the normal. The length of the normal is the area of the triangle

Vector E(V1 - V0);
Vector F(V2 - V1);
Vector N = E.Cross(F);

float area = N.GetLength();

Share this post


Link to post
Share on other sites
quote:
Original post by oliii
the surface area can be found while calculating the normal. The length of the normal is the area of the triangle

Vector E(V1 - V0);
Vector F(V2 - V1);
Vector N = E.Cross(F);

float area = N.GetLength();



Actually, as Eelco said, it is half this area.

(outer product = cross product)

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites