org.jocl.cloth.utils
Class Indices

java.lang.Object
  extended by org.jocl.cloth.utils.Indices

public class Indices
extends java.lang.Object

Utility methods dealing with the indices of collections of mesh primitives


Method Summary
static int computeAverageVertexIndexRange(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
          Compute the average vertex index range of the given edge sets
static int computeMaxVertexIndex(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
          Compute the maximum index of any vertex of the given edges
static int computeMaxVertexIndexOf(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
          Compute the maximum index of any vertex of the given edges
static int computeMaxVertexIndexRange(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
          Compute the maximum vertex index range of the given edge sets
static int computeMinVertexIndex(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
          Compute the minimum index of any vertex of the given edges
static int computeVertexIndexRange(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
          Compute the range of the vertex indices of the given edges (that is, the difference between the maximum and minimum index of any vertex)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeMinVertexIndex

public static int computeMinVertexIndex(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
Compute the minimum index of any vertex of the given edges

Parameters:
edges - The edges
Returns:
The minimum vertex index

computeMaxVertexIndex

public static int computeMaxVertexIndex(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
Compute the maximum index of any vertex of the given edges

Parameters:
edges - The edges
Returns:
The maximum vertex index

computeVertexIndexRange

public static int computeVertexIndexRange(java.lang.Iterable<? extends de.javagl.simplemesh.Edge> edges)
Compute the range of the vertex indices of the given edges (that is, the difference between the maximum and minimum index of any vertex)

Parameters:
edges - The edges
Returns:
The vertex index range

computeMaxVertexIndexRange

public static int computeMaxVertexIndexRange(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
Compute the maximum vertex index range of the given edge sets

Parameters:
edgeSets - The edge sets
Returns:
The maximum vertex index range

computeAverageVertexIndexRange

public static int computeAverageVertexIndexRange(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
Compute the average vertex index range of the given edge sets

Parameters:
edgeSets - The edge sets
Returns:
The average vertex index range

computeMaxVertexIndexOf

public static int computeMaxVertexIndexOf(java.lang.Iterable<? extends java.lang.Iterable<? extends de.javagl.simplemesh.Edge>> edgeSets)
Compute the maximum index of any vertex of the given edges

Parameters:
edgeSets - The edgeSets
Returns:
The maximum vertex index