Jump to content
  • Advertisement
Sign in to follow this  
zaneski13

Calculate Area in 3D

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so its easy to calculate are of a triangle when theres no z component. heres my senerio (0, 3, 2) (2, 3, 4) (3, 6, 1) Are the points of the triangle Basicly I calculated the change in x, y, and z and got width = 3, height = 3, depth = 2 I'd like to find the are of this triangle but following the A = 1/2bh wont work because this isn't the triangle's actual height. Its the height of it when its leaning on the z axis. Some how I need to make z = the same value for every vertex and then I can calculate the area.

Share this post


Link to post
Share on other sites
Advertisement
The area of a triangle in 3-d is proportional to the length of the cross product of any two of the triangle's edges.

See this page for more info.

Share this post


Link to post
Share on other sites
Any of the two triangles edges. How would I write that? ( in vector form )
I have the sides but I'm not sure how I'd write edges

Share this post


Link to post
Share on other sites
Quote:
Original post by zaneski13
Any of the two triangles edges. How would I write that? ( in vector form )
I have the sides but I'm not sure how I'd write edges
From any point, take the vectors to the other 2 points. Cross those vectors, and divide its magnitude by 2.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!