Jump to content
  • Advertisement
Sign in to follow this  

Extend lengths of polyline sides so that it closes

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

Hi there, I have the following problem: In an application of mine I draw rooms from top perspective. The room drawing could be seen as a polyline since it is not closed (drawing start and end point are not attached). Now say I change some angles between some sides and have the polyline (the room from top perspective) opened (e. g. obviously noew one sees that it is a polyline not a polygon). I would like to have a method to extend every line of the polygon so that the room start and end point are over eachother again. Alternatively this should be done with the inner angles. Idealy this would be done equally. I do not really have a clue to solve this, I guess I am overlooking something extremely simple :P. It would be very nice if you could add some thoughts here :) Thank you in advance, Tom [Edited by - VooDooTom on January 21, 2009 8:11:01 AM]

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.

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!