I am trying to generate vertices for different polygons using constraint programming.
I want to only get vertices that will not lead to self-intersecting polygons.
How would I set the constraint so only vertices for simple polygons are generated??
Pinned topic Eliminate Self-Intersecting Polygons
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-02T17:30:22Z at 2013-01-02T17:30:22Z by SystemAdmin
GGR 270002SS1044 Posts
Re: Eliminate Self-Intersecting Polygons2013-01-02T15:33:00ZThis is the accepted answer. This is the accepted answer.Hi
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 dis-equalities between numerical expressions. I would suggest to add an intolerance parameter that allows to forbid polygon that are almost complex.
Hope that helps
SystemAdmin 110000D4XK378 Posts
Re: Eliminate Self-Intersecting Polygons2013-01-02T17:30:22ZThis is the accepted answer. This is the accepted answer.
- GGR 270002SS10
I am not implementing complex numbers, i am generating normal vertices but when visualized, some of the polygons are self-intersecting e.g a star. I would like to eliminate such cases so that I get vertices that will make non self-intersecting polygons. Thank you