projects
/
sixth-3d-demos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed license to Creative Commons Zero (CC0).
[sixth-3d-demos.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
examples
/
RandomPolygonsDemo.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java
b/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java
index
24d0d2f
..
0d34265
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java
@@
-1,10
+1,8
@@
/*
/*
- * 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;
package eu.svjatoslav.sixth.e3d.examples;
@@
-18,8
+16,8
@@
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe.Grid3D
public class RandomPolygonsDemo {
public class RandomPolygonsDemo {
- p
ublic
static final double POLYGON_AVERAGE_SIZE = 130;
- p
ublic static final int POLYGON_COUNT = 10
000;
+ p
rivate
static final double POLYGON_AVERAGE_SIZE = 130;
+ p
rivate static final int POLYGON_COUNT = 1
000;
private static void addRandomPolygon(final ShapeCollection geometryCollection) {
final Point3D polygonLocation = getRandomPoint(1000);
private static void addRandomPolygon(final ShapeCollection geometryCollection) {
final Point3D polygonLocation = getRandomPoint(1000);
@@
-45,7
+43,7
@@
public class RandomPolygonsDemo {
}
/* I don't want very dark polygons, so ensure there is at least some
}
/* I don't want very dark polygons, so ensure there is at least some
-
* brightness present. */
+ * brightness present. */
private static double getColorChannelBrightness() {
return Math.random() * 0.7 + 0.3f;
}
private static double getColorChannelBrightness() {
return Math.random() * 0.7 + 0.3f;
}
@@
-61,8
+59,8
@@
public class RandomPolygonsDemo {
final ViewFrame viewFrame = new ViewFrame();
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection shapeCollection = viewFrame.getView()
- .get
Context().get
RootShapeCollection();
+ final ShapeCollection shapeCollection = viewFrame.getView
Panel
()
+ .getRootShapeCollection();
// add grid
final LineAppearance appearance = new LineAppearance(5, new Color(100,
// add grid
final LineAppearance appearance = new LineAppearance(5, new Color(100,