Code cleanup and formatting.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / PointCloudDemo.java
index ae3d5c7..9185614 100644 (file)
@@ -9,8 +9,8 @@
 package eu.svjatoslav.sixth.e3d.examples;
 
 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.math.Transform;
 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
+import eu.svjatoslav.sixth.e3d.math.Transform;
 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.Galaxy;
 
@@ -20,8 +20,8 @@ public class PointCloudDemo {
 
         final ViewFrame viewFrame = new ViewFrame();
 
-        final ShapeCollection geometryCollection = viewFrame.getView()
-                .getContext().getRootShapeCollection();
+        final ShapeCollection geometryCollection = viewFrame.getViewPanel()
+                .getRootShapeCollection();
 
         Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);