Class ClothOptimizer

  extended by org.jocl.cloth.ClothOptimizer

 class ClothOptimizer
extends java.lang.Object

A class for optimizing a ClothData in terms of storage locality of the edges and their vertices.

Method Summary
static ClothData optimize(ClothData clothData)
          Creates an optimized ClothData from the given ClothData.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static ClothData optimize(ClothData clothData)
Creates an optimized ClothData from the given ClothData. The new ClothData will have the same structure as the given one, but the primitives will be reordered so that the indices of the vertices of edges are "close" together, and the edges are ordered by the "center" of the indices of their vertices, in ascending order.

clothData - The cloth data
The optimized cloth data