|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.ClothData
public class ClothData
MeshPrimitives extended by the information that is
required for the simulation, namely the bending edges, and
a list of all edges.
| Constructor Summary | |
|---|---|
ClothData(java.util.Collection<? extends de.javagl.simplemesh.Vertex> vertices,
java.util.Collection<? extends de.javagl.simplemesh.Edge> edges,
java.util.Collection<? extends de.javagl.simplemesh.Face> faces,
java.util.Collection<? extends de.javagl.simplemesh.Edge> bendingEdges,
java.util.Collection<? extends de.javagl.simplemesh.Edge> allSimulationEdges)
Creates a ClothData that contains copies of the given collections. |
|
ClothData(de.javagl.simplemesh.MeshPrimitives meshPrimitives)
Creates a new ClothData from the given mesh primitives |
|
| Method Summary | |
|---|---|
java.util.List<de.javagl.simplemesh.Edge> |
getAllSimulationEdges()
Returns an unmodifiable list of all simulation edges. |
java.util.List<de.javagl.simplemesh.Edge> |
getBendingEdges()
Returns an unmodifiable list of the bending edges. |
java.util.List<de.javagl.simplemesh.Edge> |
getEdges()
|
java.util.List<de.javagl.simplemesh.Face> |
getFaces()
|
java.util.List<de.javagl.simplemesh.Vertex> |
getVertices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClothData(de.javagl.simplemesh.MeshPrimitives meshPrimitives)
meshPrimitives - The mesh primitives
ClothData(java.util.Collection<? extends de.javagl.simplemesh.Vertex> vertices,
java.util.Collection<? extends de.javagl.simplemesh.Edge> edges,
java.util.Collection<? extends de.javagl.simplemesh.Face> faces,
java.util.Collection<? extends de.javagl.simplemesh.Edge> bendingEdges,
java.util.Collection<? extends de.javagl.simplemesh.Edge> allSimulationEdges)
vertices - The verticesedges - The edgesfaces - The facesbendingEdges - The bending edgesallSimulationEdges - The simulation edges| Method Detail |
|---|
public java.util.List<de.javagl.simplemesh.Vertex> getVertices()
getVertices in interface de.javagl.simplemesh.MeshPrimitivespublic java.util.List<de.javagl.simplemesh.Edge> getEdges()
getEdges in interface de.javagl.simplemesh.MeshPrimitivespublic java.util.List<de.javagl.simplemesh.Face> getFaces()
getFaces in interface de.javagl.simplemesh.MeshPrimitivespublic java.util.List<de.javagl.simplemesh.Edge> getBendingEdges()
public java.util.List<de.javagl.simplemesh.Edge> getAllSimulationEdges()
getEdges(), and edges
that have the same vertices as the ones obtained by
getBendingEdges(), with indices reflecting
their position in the returned list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||