New topic: Complex Polygons
<http://forums.realsoftware.com/viewtopic.php?t=47525> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message DaveS Post subject: Complex PolygonsPosted: Sat Apr 06, 2013 1:30 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 4722 Location: San Diego, CA Confused about Object2D, Group2d and all the related objects. I need to create dozens of complex shapes, each of which will need to be manipulated by the user in regards to width, height, border/fill color, rotation (all the basic properties of an Object2D I currently have XML the defines each Shape using 3 basic primitives.. LINE, CIRCLE and RECT where LINE specifies ONE POINT (the other point being the ending of the last object), CIRCLE as a center point, RadiusX, RadiusY (to form ellipse), and a start and end angle so I can create arcs or full circle/ellipse. Right now, each of these generates a bunch of X/Y coordinates along the edged of the object, and I use FILLPOLYGON, and DRAWPOLYGON to render the shape But I have found for CIRCLE this looks TERRIBLE due to rounding errors etc especially as the objects become larger. Is it possible to "easily" create a Group2D using ARCSHAPE, CURVESHAPE etc.... to create an object that duplicates the POLYGON type drawing... by encapsulating everything into a GROUP2D. Here is a few examples (almost all the rest of the shapes consist of straight line segments) On a side note..... why doesn't ANTIALIAS WORK?! This is a Carbon application.... and lines are being drawn aliased and I do not wish them to be so. _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
