org.jocl.cloth
Class ClothPartitioner

java.lang.Object
  extended by org.jocl.cloth.ClothPartitioner

 class ClothPartitioner
extends java.lang.Object

A class for computing independent sets of edges. That is, it splits a set of edges into sets where no two edges of a single set have a common vertex.


Method Summary
static
<T extends de.javagl.simplemesh.Edge>
java.util.List<java.util.List<T>>
computeIndependentSets(java.util.Collection<T> edges)
          Compute the independent sets of the given edges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeIndependentSets

public static <T extends de.javagl.simplemesh.Edge> java.util.List<java.util.List<T>> computeIndependentSets(java.util.Collection<T> edges)
Compute the independent sets of the given edges

Type Parameters:
T - The edge type
Parameters:
edges - The edges
Returns:
The independent sets