Moved galaxy object to 3D engine demonstration project
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / galaxy_demo / PointCloudDemo.java
1 /*
2  * Sixth 3D engine demos. Author: Svjatoslav Agejenko. 
3  * This project is released under Creative Commons Zero (CC0) license.
4  *
5 */
6
7 package eu.svjatoslav.sixth.e3d.examples.galaxy_demo;
8
9 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
10 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
11 import eu.svjatoslav.sixth.e3d.math.Transform;
12 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
13
14 public class PointCloudDemo {
15
16     public static void main(final String[] args) {
17
18         final ViewFrame viewFrame = new ViewFrame();
19
20         final ShapeCollection geometryCollection = viewFrame.getViewPanel()
21                 .getRootShapeCollection();
22
23         Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
24
25         // add galaxy
26         geometryCollection.addShape(new Galaxy(500, 3, 10000, transform));
27
28     }
29 }