Jump to content
  • Advertisement


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


polygon planarity?

This topic is 5361 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

How would I determine whether a polygon with more than 3 vertices (i.e., say 5 vertices (1,2,3),(2,3,4),(3,4,5), (4,5,6),(5,6,7)) is "planar", and what exactly is the significance of that? If I got the cross product of say two sets of vertices (i.e., say v1,v2,v3, and then v2,v3,v4) -- would some sort of comparison work? Or is there something else? Thanks!

Share this post

Link to post
Share on other sites
the cross product vectors must be parallel (due to float imprecisions they will often be not exactly but only close to parallel).
most renderers will triangulize the polygon so you''ll end up with non-coplanar triangles; there are different triangulizations for a given polygon so it''s not guaranteed that the polygon will always look the same way.
secondly, i don''t know what your application is, but designers will want something being called polygon to be flat.

Share this post

Link to post
Share on other sites

  • 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!