5 Replies Latest reply: Nov 12, 2013 3:08 AM by anusanraj RSS

    Cannot Draw a Polygon using fillPolygon with more than 256 vertices

    anusanraj

      If it tries to draw a polygon with more than 256 vertices, it throws an ArrayIndexOutOfBoundsException mentioning that it tries to access 512th index.

       

      I tried to draw a polygon with 348 vertices which passes (348 xPoints, 348 yPoints, 348) in to following function.

      fillPolygon(double[] xPoints, double[] yPoints, int nPoints)

       

      Then it throws an ArrayIndexOutOfBoundsException saying it tries to access 512th index. This exception is thrown in any case where it passes more than 256 points into the fillPolygon function.

      Used java version is JDK 7u45 release which includes JavaFX version 2.2.45.

       

      I reported this issue in JMY-243. But no reply so far.