Project

General

Profile

« Previous | Next » 

Revision 80cb15ab

Added by Leszek Koltunski almost 7 years ago

Change of API in anticipation for MeshCubes of any depth (currently only 0 and 1 work)

View differences:

src/main/java/org/distorted/library/MeshObject.java
124 124
     return getClass().getSimpleName()+" vertices:"+ numVertices;
125 125
     }
126 126

  
127
///////////////////////////////////////////////////////////////////////////////////////////////////
128
/**
129
 * Get the minimal set of Vertices which have the same convex hull as the whole set.
130
 * <p>
131
 * In case of Flat Meshes, the set is obviously just the 4 corners. In case of the Cubes Mesh,
132
 * it is a subset of the set of each rightmost- and leftmost- corners in each row.
133
 * <p>
134
 * This is used to be able to quickly compute, in window coordinates, the Mesh'es bounding rectangle.
135
 */
136
   abstract float[] getBoundingVertices();
137

  
138 127
///////////////////////////////////////////////////////////////////////////////////////////////////
139 128
/**
140 129
 * When rendering this Mesh, do we want to render the Normal vectors as well?

Also available in: Unified diff