Fixed Maven repository URL.
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / 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;
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 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.Galaxy;
14
15 public class PointCloudDemo {
16
17     public static void main(final String[] args) {
18
19         final ViewFrame viewFrame = new ViewFrame();
20
21         final ShapeCollection geometryCollection = viewFrame.getViewPanel()
22                 .getRootShapeCollection();
23
24         Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
25
26         // add galaxy
27         geometryCollection.addShape(new Galaxy(500, 3, 10000, transform));
28
29     }
30 }