Commit Graph

26 Commits

Author SHA1 Message Date
Tats
0711e236f6 Implemented constraining of vertices in polygons (esp. meshes) to avoid line crossing problems. Working at 99%. 2014-05-03 13:16:47 -04:00
Tats
c91a55e4e8 Fixed error in ordering of mesh vertices 2014-05-03 13:11:36 -04:00
Tats
f5d375442a Improved the style of the control rendering. 2014-05-03 00:26:02 -04:00
Tats
eded602ef9 Fixed bug: texture meshes points were not loaded in the right order 2014-04-04 00:54:17 -04:00
Tats
13364f98c7 Bug fix: triangles setVertex() did nothing 2014-03-22 01:53:51 -04:00
Tats
f2a7e93b36 Prevents quad / polygon vertices to cross a segment (ie. makes sure they stay simple polygons). 2014-03-19 22:35:22 -04:00
Tats
441664e6f0 Added a Polygon shape and corresponding mappers (just used as a superclass of Quad and Triangle for now). 2014-03-19 22:34:34 -04:00
Tats
8256ace2e1 Added sanity check for ellipses (makes sure the points are ok). 2014-03-02 22:29:36 -05:00
Tats
f489f0b6b6 Rewrote the includesPoint() method for Ellipse using transformations. 2014-03-02 21:09:48 -05:00
Tats
f3d09731d9 Small bug fix for clippings. 2014-03-02 21:08:57 -05:00
Tats
d0e697d77a Remove unused center control point for color ellipses. 2014-03-02 21:07:11 -05:00
Tats
5de7162a59 Clip center control point inside ellipse using QTransform. 2014-03-02 20:50:27 -05:00
Tats
755b7cfa94 Use QTransform to manage point remapping when moving vertices. 2014-03-02 20:49:59 -05:00
Tats
964a968b36 Added center control point (basic functionality, just "stays inside" the ellipse for now but not working 100%) 2014-03-02 17:43:44 -05:00
Tats
e72a1a3c77 Override of includesPoint() methods in Ellipse. 2014-03-02 17:37:49 -05:00
Tats
dea2781100 Modification of includePoint() method to work with qreal instead of int (also overloaded for QPointF). 2014-03-02 17:37:10 -05:00
Tats
89a5ce8787 Use the containsPoint() method of polygon to test point inclusion inside shape. 2014-02-09 01:03:16 -05:00
Tats
e36cb1a991 Replace std::vector and std::map by QVector and QMap (not everywhere yet). 2014-02-09 01:02:54 -05:00
Tats
195c426991 Removed the Point class and replace all instances by QPointF. 2014-02-09 01:02:13 -05:00
Tats
3692565d94 Comment cleanup in Shape 2014-01-22 14:59:54 -05:00
Tats
3de61fc6dc Some accessor functions in the Mesh class 2014-01-22 14:59:45 -05:00
Tats
478e5681a7 Added a toPolygon() method to Shape 2014-01-22 14:59:18 -05:00
Tats
f7cdb15754 Added a method that returns an enclosing polygon based on a shape. 2014-01-22 13:30:39 -05:00
Tats
9219cee81c Add save/load of meshes 2014-01-11 23:02:52 -05:00
Tats
4639a228c6 Resolved all compilation errors from merging 2014-01-05 18:07:19 -05:00
Tats
245a74c5c9 Transferred implementations of Shape methods to .cpp file 2013-12-12 21:38:13 -05:00