04ae57055fc5529737e1ce5e5039994f1be90443
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / PointCloudDemo.java
1 /*
2  * Sixth - System for data storage, computation, exploration and interaction.
3  * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
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.
8  */
9
10 package eu.svjatoslav.sixth.e3d.examples;
11
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;
17
18 public class PointCloudDemo {
19
20     public static void main(final String[] args) {
21
22         final ViewFrame viewFrame = new ViewFrame();
23
24         final ShapeCollection geometryCollection = viewFrame.getView()
25                 .getContext().getRootShapeCollection();
26
27         Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
28
29         // add galaxy
30         geometryCollection.addShape(new Galaxy(1000, 3, 10000, transform));
31
32     }
33 }