Hello!!
I am trying to generate vertices for different polygons using constraint programming.
I want to only get vertices that will not lead to selfintersecting polygons.
How would I set the constraint so only vertices for simple polygons are generated??
Thank you.
Topic
NOTICE: developerWorks Community will be offline May 2930, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies
Latest Post
 20130102T17:30:22Z by SystemAdmin
ACCEPTED ANSWER
Pinned topic Eliminate SelfIntersecting Polygons
20130102T04:44:57Z

Answered question
This question has been answered.
Unanswered question
This question has not been answered yet.
Updated on 20130102T17:30:22Z at 20130102T17:30:22Z by SystemAdmin

ACCEPTED ANSWER
Re: Eliminate SelfIntersecting Polygons
20130102T15:33:00Z in response to SystemAdminHi
Unless you state the integrity of the coordinates of the vertices, you need a solver that handle floating point decision variables. I never heard about CP solver implementing complex number as decision variables.
The geometrical conditions that defines a simple polygon will lead to inequalities or disequalities between numerical expressions. I would suggest to add an intolerance parameter that allows to forbid polygon that are almost complex.
Hope that helps
ACCEPTED ANSWER
Re: Eliminate SelfIntersecting Polygons
20130102T17:30:22Z in response to GGRHi,
I am not implementing complex numbers, i am generating normal vertices but when visualized, some of the polygons are selfintersecting e.g a star. I would like to eliminate such cases so that I get vertices that will make non selfintersecting polygons. Thank you
