|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.ClothSimulationCoreJava
class ClothSimulationCoreJava
The core of a cloth Simulation implemented in plain Java. It
uses an ExecutorService to execute the computation with multiple threads.
The particle-based tasks are divided among the available processors.
The only edge-based tasks, namely the constraint enforcement of the
independent sets, are each computed by one thread.
| Constructor Summary | |
|---|---|
ClothSimulationCoreJava(ResourceHandle<java.nio.FloatBuffer> positionsHandle,
ParticleData p,
EdgeData[] e)
Creates a new cloth simulation core that will write the vertex positions into the buffer obtained from the given handle, and operates on the given simulation data . |
|
| Method Summary | |
|---|---|
void |
performTimeStep(float dt)
Perform a simulation step with the given size |
void |
prepareRendering()
Perform any steps necessary to render the current simulation state |
void |
shutdown()
Shut down the simulation and free all allocated resources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ClothSimulationCoreJava(ResourceHandle<java.nio.FloatBuffer> positionsHandle,
ParticleData p,
EdgeData[] e)
positionsHandle - The handle for the positions bufferp - The ParticleDatae - The EdgeData| Method Detail |
|---|
public void prepareRendering()
Simulation
prepareRendering in interface Simulationpublic void performTimeStep(float dt)
Simulation
performTimeStep in interface Simulationdt - The step sizepublic void shutdown()
Simulation
shutdown in interface Simulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||