Removed ViewListener interface. Renamed View to ViewPanel.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / RandomPolygonsDemo.java
index 24d0d2f..7534148 100755 (executable)
@@ -18,8 +18,8 @@ import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe.Grid3D
 
 public class RandomPolygonsDemo {
 
-    public static final double POLYGON_AVERAGE_SIZE = 130;
-    public static final int POLYGON_COUNT = 10000;
+    private static final double POLYGON_AVERAGE_SIZE = 130;
+    private static final int POLYGON_COUNT = 1000;
 
     private static void addRandomPolygon(final ShapeCollection geometryCollection) {
         final Point3D polygonLocation = getRandomPoint(1000);
@@ -61,7 +61,7 @@ public class RandomPolygonsDemo {
 
         final ViewFrame viewFrame = new ViewFrame();
 
-        final ShapeCollection shapeCollection = viewFrame.getView()
+        final ShapeCollection shapeCollection = viewFrame.getViewPanel()
                 .getContext().getRootShapeCollection();
 
         // add grid