Jump to content
  • Advertisement

Archived

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

duhroach

Splitting a polygon w/ a Plane

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

Howdy I''ve been researching a few different techniques for spacial subdivision, and I''ve run into a problem of trying to split a polygon with a given plane. I''ve found code on it from BSP tutorials, but those operate under the assumption that polygons can be any number of verticies. Whereas i have to operate under the confines that a Polygon is 3 verts. Can anyone help me out with code or point me in the correct direction? thanks ~Main

Share this post


Link to post
Share on other sites
Advertisement
You''ll make life complex for yourself if you don''t allow arbitrary number of vertices. Do the clipping with an arbitrary number and then split the resulting polygon(s) into triangles if you need to.

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!