Project

General

Profile

« Previous | Next » 

Revision 69ed1eb4

Added by Leszek Koltunski over 7 years ago

Progress with getting Mesh'es bounding rectangle.

View differences:

src/main/java/org/distorted/library/MeshObject.java
50 50
     }
51 51

  
52 52
///////////////////////////////////////////////////////////////////////////////////////////////////
53

  
54
   abstract boolean canUsePostprocessingShortcut();
53
/**
54
 * Get the minimal set of Vertices which have the same convex hull as the whole set.
55
 * <p>
56
 * In case of Flat Meshes, the set is obviously just the 4 corners. In case of the Cubes Mesh,
57
 * it is a subset of the set of each rightmost- and leftmost- corners in each row.
58
 * <p>
59
 * This is used to be able to quickly compute, in window coordinates, the Mesh'es bounding rectangle.
60
 */
61
   abstract float[] getBoundingVertices();
55 62
   }

Also available in: Unified diff