Removed ViewContext.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / PointCloudDemo.java
1 /*
2  * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 3 of the GNU Lesser General Public License
6  * or later as published by the Free Software Foundation.
7  */
8
9 package eu.svjatoslav.sixth.e3d.examples;
10
11 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
12 import eu.svjatoslav.sixth.e3d.math.Transform;
13 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
14 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
15 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.Galaxy;
16
17 public class PointCloudDemo {
18
19     public static void main(final String[] args) {
20
21         final ViewFrame viewFrame = new ViewFrame();
22
23         final ShapeCollection geometryCollection = viewFrame.getViewPanel()
24                 .getRootShapeCollection();
25
26         Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
27
28         // add galaxy
29         geometryCollection.addShape(new Galaxy(1000, 3, 10000, transform));
30
31     }
32 }