Bug 12212 fixed: Export a polyline in 2D broke it into several segments
[scilab.git] / scilab / modules / scirenderer / src / org / scilab / forge / scirenderer / implementation / g2d / motor / Triangle.java
index ffaccba..e5bc01b 100644 (file)
@@ -193,6 +193,10 @@ public class Triangle extends ConvexObject {
             Path2D contour = getProjectedContour();
             Area area = new Area(contour);
             // Trick to paint the triangle and its outline
+            // TODO: the newly created Area contains in fact two areas
+            // it should be better to have one area where its border
+            // is the external outline of the contour...
+            // (it would reduce eps/ps/pdf/svg file size)
             area.add(new Area(stroke.createStrokedShape(contour)));
             g2d.setStroke(EMPTYSTROKE);
             g2d.setColor(colors[0]);