2) Constraining polygons to convex while they are being defined by the mouse is very very difficult.
1) This is a pretty good film.
2) Constraining polygons to convex while they are being defined by the mouse is very very difficult.
2) Constraining polygons to convex while they are being defined by the mouse is very very difficult.
Previous Entry
Tired but happy
Next Entry
Convex polygon hell
Advertisement
Latest Entries
Hey
3197 views
Further developments
1922 views
Implementing Properties
3617 views
Optimising my scripting language
2851 views
QtScripting madness
2336 views
Various
2412 views
Progress Update
2462 views
Some progress (added new vid)
2519 views
Advertisement
As you dragged vertices around it would find all of the other vertices in your current polygon (by following your hand-drawn links). It would remove the links between then, then reorder the list of vertices into a convex polygon (if I remember correctly, I simply went around in a clockwise direction using the midpoint of the polygon as a reference point). Once this was done, I'd join them all back together.
This could look a bit odd if you, say, grabbed a corner of a square and dragged this through the polygon, as the shape would suddenly changed once it became concave.