-
Notifications
You must be signed in to change notification settings - Fork 27
Geometry
thothbot edited this page Mar 4, 2016
·
9 revisions
Geometry
is based class for all geometries.
// Lets create triangle geometry
Geometry geometry = new Geometry();
geometry.getVertices().add( new Vector3( -10, 10, 0 ) );
geometry.getVertices().add( new Vector3( -10, -10, 0 ) );
geometry.getVertices().add( new Vector3( 10, -10, 0 ) );
geometry.getFaces().add( new Face3( 0, 1, 2 ) );
geometry.computeBoundingSphere();