2 * Sixth - System for data storage, computation, exploration and interaction.
3 * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.examples;
12 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
13 import eu.svjatoslav.sixth.e3d.geometry.Transform;
14 import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
15 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
16 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.Galaxy;
18 public class PointCloudDemo {
20 public static void main(final String[] args) {
22 final ViewFrame viewFrame = new ViewFrame();
24 final ShapeCollection geometryCollection = viewFrame.getView()
25 .getContext().getRootShapeCollection();
27 Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
30 geometryCollection.addShape(new Galaxy(1000, 3, 10000, transform));