X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2FPointCloudDemo.java;h=8e36080d3671eb44bfeb1afcfd9b7219735dceda;hb=04220ddc40ea23ff3fa0d397d2c53db66f76952c;hp=63d1b38c86fad40b76f657a358569ae7b845ca46;hpb=335758c2678788d95da705b28dbebe4ba206c103;p=sixth-3d-demos.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/PointCloudDemo.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/PointCloudDemo.java index 63d1b38..8e36080 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/PointCloudDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/PointCloudDemo.java @@ -1,16 +1,14 @@ /* - * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine demos. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 3 of the GNU Lesser General Public License - * or later as published by the Free Software Foundation. - */ +*/ package eu.svjatoslav.sixth.e3d.examples; import eu.svjatoslav.sixth.e3d.geometry.Point3D; -import eu.svjatoslav.sixth.e3d.math.Transform; import eu.svjatoslav.sixth.e3d.gui.ViewFrame; +import eu.svjatoslav.sixth.e3d.math.Transform; import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection; import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.Galaxy; @@ -21,12 +19,12 @@ public class PointCloudDemo { final ViewFrame viewFrame = new ViewFrame(); final ShapeCollection geometryCollection = viewFrame.getViewPanel() - .getContext().getRootShapeCollection(); + .getRootShapeCollection(); Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0); // add galaxy - geometryCollection.addShape(new Galaxy(1000, 3, 10000, transform)); + geometryCollection.addShape(new Galaxy(500, 3, 10000, transform)); } }