2 * Sixth 3D engine demos. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
7 package eu.svjatoslav.sixth.e3d.examples;
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;
15 public class PointCloudDemo {
17 public static void main(final String[] args) {
19 final ViewFrame viewFrame = new ViewFrame();
21 final ShapeCollection geometryCollection = viewFrame.getViewPanel()
22 .getRootShapeCollection();
24 Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
27 geometryCollection.addShape(new Galaxy(500, 3, 10000, transform));