Jump to content
  • Advertisement
Sign in to follow this  
zaneski13

Calculate Area in 3D

This topic is 3264 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
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!