Skip to main content
GameDev.net gamedev.net
🔒 Locked

polygon planarity?

Started by johnnyboy Jan 16, 2004 at 10:18 AM 0 replies 650+ views
Original Post
johnnyboy
johnnyboy
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!
!
ga
ga
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.
Visit our homepage: www.rarebyte.de.stGA

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.