|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.ClothClusterPartitioner
public class ClothClusterPartitioner
A class for computing lists of edge lists that are mutually disjoint and created by clustering the vertices of a given set of input edges.
Method Summary | ||
---|---|---|
static
|
computeClustersEdgeLists(java.util.Collection<T> edges,
int numClusters)
Compute lists of edge lists by clustering the vertices of the given edge collection and combining clusters that are not adjacent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends de.javagl.simplemesh.Edge> java.util.List<java.util.List<java.util.List<T>>> computeClustersEdgeLists(java.util.Collection<T> edges, int numClusters)
numClusters=10
, then
the result of this call may be the following: result.get(0)
is a list of edge lists with result.get(1)
is a list of edge lists with result.get(2)
is a list of edge lists with result.get(3)
is a list of edge lists with n
threads,
the numClusters
should be about n*8
.
The n
threads can then process the edge lists
of result.get(0)
in parallel, then the lists of
result.get(1)
and so on.
T
- The edge typeedges
- The input edgesnumClusters
- The number of clusters to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |