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.galaxy_demo;
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;
14 public class PointCloudDemo {
16 public static void main(final String[] args) {
18 final ViewFrame viewFrame = new ViewFrame();
20 final ShapeCollection geometryCollection = viewFrame.getViewPanel()
21 .getRootShapeCollection();
23 Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
26 geometryCollection.addShape(new Galaxy(500, 3, 10000, transform));