org.jocl.cloth
Class SimConfig

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

 class SimConfig
extends java.lang.Object

Global configuration parameters for the simulation. This is not an anti-pattern, this is THE anti-pattern.


Field Summary
(package private) static float COLLISION_SPHERE_RADIUS
          The radius of the implicit sphere used for collision detection
(package private) static float DAMPING
          The damping factor for the particle velocities
(package private) static float DEVIATION
          The maximum deviation between the edge length and its rest length that causes a correction of its length
(package private) static int NUM_ITERATIONS
          The number of iterations for the loop that adjusts all edge lengths.
(package private) static boolean PROFILING
          Whether profiling is enabled
(package private) static int STRIDE
          The stride (i.e. number of components) for vertices and normals.
(package private) static float TIME_STEP_SIZE
          The default time step size for the simulation
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRIDE

static final int STRIDE
The stride (i.e. number of components) for vertices and normals. Usually this will be 4, corresponding to a float4 of OpenCL

See Also:
Constant Field Values

TIME_STEP_SIZE

static final float TIME_STEP_SIZE
The default time step size for the simulation

See Also:
Constant Field Values

DAMPING

static final float DAMPING
The damping factor for the particle velocities

See Also:
Constant Field Values

DEVIATION

static final float DEVIATION
The maximum deviation between the edge length and its rest length that causes a correction of its length

See Also:
Constant Field Values

NUM_ITERATIONS

static final int NUM_ITERATIONS
The number of iterations for the loop that adjusts all edge lengths.

See Also:
Constant Field Values

COLLISION_SPHERE_RADIUS

static final float COLLISION_SPHERE_RADIUS
The radius of the implicit sphere used for collision detection

See Also:
Constant Field Values

PROFILING

static final boolean PROFILING
Whether profiling is enabled

See Also:
Constant Field Values