2 * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
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.
9 package eu.svjatoslav.sixth.e3d.examples;
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;
17 public class PointCloudDemo {
19 public static void main(final String[] args) {
21 final ViewFrame viewFrame = new ViewFrame();
23 final ShapeCollection geometryCollection = viewFrame.getViewPanel()
24 .getRootShapeCollection();
26 Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
29 geometryCollection.addShape(new Galaxy(1000, 3, 10000, transform));