Jump to content
  • Advertisement

Archived

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

johnnyboy

polygon planarity?

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

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!