public class ClothSimSettings extends CFacade
This struct contains all the global data required to run a simulation. At the time of this writing, this structure contains data appropriate to run a simulation as described in Deformation Constraints in a Mass-Spring Model to Describe Rigid Cloth Behavior by Xavier Provot.
I've tried to keep similar, if not exact names for the variables as are presented in the paper. Where I've changed the concept slightly, as in stepsPerFrame compared to the time step in the paper, I've used variables with different names to minimize confusion.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__avg_spring_len
Field descriptor (offset) for struct member 'avg_spring_len'.
|
static long[] |
__DNA__FIELD__bending
Field descriptor (offset) for struct member 'bending'.
|
static long[] |
__DNA__FIELD__bending_damping
Field descriptor (offset) for struct member 'bending_damping'.
|
static long[] |
__DNA__FIELD__cache
Field descriptor (offset) for struct member 'cache'.
|
static long[] |
__DNA__FIELD__Cdis
Field descriptor (offset) for struct member 'Cdis'.
|
static long[] |
__DNA__FIELD__collider_friction
Field descriptor (offset) for struct member 'collider_friction'.
|
static long[] |
__DNA__FIELD__Cvi
Field descriptor (offset) for struct member 'Cvi'.
|
static long[] |
__DNA__FIELD__defgoal
Field descriptor (offset) for struct member 'defgoal'.
|
static long[] |
__DNA__FIELD__density_strength
Field descriptor (offset) for struct member 'density_strength'.
|
static long[] |
__DNA__FIELD__density_target
Field descriptor (offset) for struct member 'density_target'.
|
static long[] |
__DNA__FIELD__dt
Field descriptor (offset) for struct member 'dt'.
|
static long[] |
__DNA__FIELD__eff_force_scale
Field descriptor (offset) for struct member 'eff_force_scale'.
|
static long[] |
__DNA__FIELD__eff_wind_scale
Field descriptor (offset) for struct member 'eff_wind_scale'.
|
static long[] |
__DNA__FIELD__effector_weights
Field descriptor (offset) for struct member 'effector_weights'.
|
static long[] |
__DNA__FIELD__flags
Field descriptor (offset) for struct member 'flags'.
|
static long[] |
__DNA__FIELD__goalfrict
Field descriptor (offset) for struct member 'goalfrict'.
|
static long[] |
__DNA__FIELD__goalspring
Field descriptor (offset) for struct member 'goalspring'.
|
static long[] |
__DNA__FIELD__gravity
Field descriptor (offset) for struct member 'gravity'.
|
static long[] |
__DNA__FIELD__mass
Field descriptor (offset) for struct member 'mass'.
|
static long[] |
__DNA__FIELD__max_bend
Field descriptor (offset) for struct member 'max_bend'.
|
static long[] |
__DNA__FIELD__max_sewing
Field descriptor (offset) for struct member 'max_sewing'.
|
static long[] |
__DNA__FIELD__max_shear
Field descriptor (offset) for struct member 'max_shear'.
|
static long[] |
__DNA__FIELD__max_struct
Field descriptor (offset) for struct member 'max_struct'.
|
static long[] |
__DNA__FIELD__maxgoal
Field descriptor (offset) for struct member 'maxgoal'.
|
static long[] |
__DNA__FIELD__maxspringlen
Field descriptor (offset) for struct member 'maxspringlen'.
|
static long[] |
__DNA__FIELD__mingoal
Field descriptor (offset) for struct member 'mingoal'.
|
static long[] |
__DNA__FIELD__pad
Field descriptor (offset) for struct member 'pad'.
|
static long[] |
__DNA__FIELD__pad0
Field descriptor (offset) for struct member 'pad0'.
|
static long[] |
__DNA__FIELD__preroll
Deprecated.
DeprecatedHow many frames of simulation to do before we start.
Pointer ArithmeticsThis is how you get a reference on the corresponding field in the struct: ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__preroll); CPointer<Integer> p_preroll = p.cast(new Class[]{Integer.class}); Metadata
|
static long[] |
__DNA__FIELD__presets
Field descriptor (offset) for struct member 'presets'.
|
static long[] |
__DNA__FIELD__reset
Field descriptor (offset) for struct member 'reset'.
|
static long[] |
__DNA__FIELD__shapekey_rest
Field descriptor (offset) for struct member 'shapekey_rest'.
|
static long[] |
__DNA__FIELD__shear
Field descriptor (offset) for struct member 'shear'.
|
static long[] |
__DNA__FIELD__shrink_max
Field descriptor (offset) for struct member 'shrink_max'.
|
static long[] |
__DNA__FIELD__shrink_min
Field descriptor (offset) for struct member 'shrink_min'.
|
static long[] |
__DNA__FIELD__sim_time_old
Field descriptor (offset) for struct member 'sim_time_old'.
|
static long[] |
__DNA__FIELD__solver_type
Field descriptor (offset) for struct member 'solver_type'.
|
static long[] |
__DNA__FIELD__stepsPerFrame
Field descriptor (offset) for struct member 'stepsPerFrame'.
|
static long[] |
__DNA__FIELD__structural
Field descriptor (offset) for struct member 'structural'.
|
static long[] |
__DNA__FIELD__time_scale
Field descriptor (offset) for struct member 'time_scale'.
|
static long[] |
__DNA__FIELD__timescale
Field descriptor (offset) for struct member 'timescale'.
|
static long[] |
__DNA__FIELD__vel_damping
Field descriptor (offset) for struct member 'vel_damping'.
|
static long[] |
__DNA__FIELD__velocity_smooth
Field descriptor (offset) for struct member 'velocity_smooth'.
|
static long[] |
__DNA__FIELD__vgroup_bend
Field descriptor (offset) for struct member 'vgroup_bend'.
|
static long[] |
__DNA__FIELD__vgroup_mass
Field descriptor (offset) for struct member 'vgroup_mass'.
|
static long[] |
__DNA__FIELD__vgroup_shrink
Field descriptor (offset) for struct member 'vgroup_shrink'.
|
static long[] |
__DNA__FIELD__vgroup_struct
Field descriptor (offset) for struct member 'vgroup_struct'.
|
static long[] |
__DNA__FIELD__voxel_cell_size
Field descriptor (offset) for struct member 'voxel_cell_size'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct ClothSimSettings.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
ClothSimSettings(ClothSimSettings that) |
|
ClothSimSettings(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<ClothSimSettings> |
__io__addressof()
Instantiates a pointer on this instance.
|
float |
getAvg_spring_len()
Get method for struct member 'avg_spring_len'.
|
float |
getBending_damping()
Get method for struct member 'bending_damping'.
|
float |
getBending()
Get method for struct member 'bending'.
|
CPointer<java.lang.Object> |
getCache()
Get method for struct member 'cache'.
|
float |
getCdis()
Get method for struct member 'Cdis'.
|
float |
getCollider_friction()
Get method for struct member 'collider_friction'.
|
float |
getCvi()
Get method for struct member 'Cvi'.
|
float |
getDefgoal()
Get method for struct member 'defgoal'.
|
float |
getDensity_strength()
Get method for struct member 'density_strength'.
|
float |
getDensity_target()
Get method for struct member 'density_target'.
|
float |
getDt()
Get method for struct member 'dt'.
|
float |
getEff_force_scale()
Get method for struct member 'eff_force_scale'.
|
float |
getEff_wind_scale()
Get method for struct member 'eff_wind_scale'.
|
CPointer<EffectorWeights> |
getEffector_weights()
Get method for struct member 'effector_weights'.
|
int |
getFlags()
Get method for struct member 'flags'.
|
float |
getGoalfrict()
Get method for struct member 'goalfrict'.
|
float |
getGoalspring()
Get method for struct member 'goalspring'.
|
CArrayFacade<java.lang.Float> |
getGravity()
Get method for struct member 'gravity'.
|
float |
getMass()
Get method for struct member 'mass'.
|
float |
getMax_bend()
Get method for struct member 'max_bend'.
|
float |
getMax_sewing()
Get method for struct member 'max_sewing'.
|
float |
getMax_shear()
Get method for struct member 'max_shear'.
|
float |
getMax_struct()
Get method for struct member 'max_struct'.
|
float |
getMaxgoal()
Get method for struct member 'maxgoal'.
|
int |
getMaxspringlen()
Get method for struct member 'maxspringlen'.
|
float |
getMingoal()
Get method for struct member 'mingoal'.
|
int |
getPad()
Get method for struct member 'pad'.
|
CArrayFacade<java.lang.Byte> |
getPad0()
Get method for struct member 'pad0'.
|
int |
getPreroll()
Deprecated.
DeprecatedHow many frames of simulation to do before we start.
|
short |
getPresets()
Get method for struct member 'presets'.
|
short |
getReset()
Get method for struct member 'reset'.
|
short |
getShapekey_rest()
Get method for struct member 'shapekey_rest'.
|
float |
getShear()
Get method for struct member 'shear'.
|
float |
getShrink_max()
Get method for struct member 'shrink_max'.
|
float |
getShrink_min()
Get method for struct member 'shrink_min'.
|
float |
getSim_time_old()
Get method for struct member 'sim_time_old'.
|
short |
getSolver_type()
Get method for struct member 'solver_type'.
|
int |
getStepsPerFrame()
Get method for struct member 'stepsPerFrame'.
|
float |
getStructural()
Get method for struct member 'structural'.
|
float |
getTime_scale()
Get method for struct member 'time_scale'.
|
float |
getTimescale()
Get method for struct member 'timescale'.
|
float |
getVel_damping()
Get method for struct member 'vel_damping'.
|
float |
getVelocity_smooth()
Get method for struct member 'velocity_smooth'.
|
short |
getVgroup_bend()
Get method for struct member 'vgroup_bend'.
|
short |
getVgroup_mass()
Get method for struct member 'vgroup_mass'.
|
short |
getVgroup_shrink()
Get method for struct member 'vgroup_shrink'.
|
short |
getVgroup_struct()
Get method for struct member 'vgroup_struct'.
|
float |
getVoxel_cell_size()
Get method for struct member 'voxel_cell_size'.
|
void |
setAvg_spring_len(float avg_spring_len)
Set method for struct member 'avg_spring_len'.
|
void |
setBending_damping(float bending_damping)
Set method for struct member 'bending_damping'.
|
void |
setBending(float bending)
Set method for struct member 'bending'.
|
void |
setCache(CPointer<java.lang.Object> cache)
Set method for struct member 'cache'.
|
void |
setCdis(float Cdis)
Set method for struct member 'Cdis'.
|
void |
setCollider_friction(float collider_friction)
Set method for struct member 'collider_friction'.
|
void |
setCvi(float Cvi)
Set method for struct member 'Cvi'.
|
void |
setDefgoal(float defgoal)
Set method for struct member 'defgoal'.
|
void |
setDensity_strength(float density_strength)
Set method for struct member 'density_strength'.
|
void |
setDensity_target(float density_target)
Set method for struct member 'density_target'.
|
void |
setDt(float dt)
Set method for struct member 'dt'.
|
void |
setEff_force_scale(float eff_force_scale)
Set method for struct member 'eff_force_scale'.
|
void |
setEff_wind_scale(float eff_wind_scale)
Set method for struct member 'eff_wind_scale'.
|
void |
setEffector_weights(CPointer<EffectorWeights> effector_weights)
Set method for struct member 'effector_weights'.
|
void |
setFlags(int flags)
Set method for struct member 'flags'.
|
void |
setGoalfrict(float goalfrict)
Set method for struct member 'goalfrict'.
|
void |
setGoalspring(float goalspring)
Set method for struct member 'goalspring'.
|
void |
setGravity(CArrayFacade<java.lang.Float> gravity)
Set method for struct member 'gravity'.
|
void |
setMass(float mass)
Set method for struct member 'mass'.
|
void |
setMax_bend(float max_bend)
Set method for struct member 'max_bend'.
|
void |
setMax_sewing(float max_sewing)
Set method for struct member 'max_sewing'.
|
void |
setMax_shear(float max_shear)
Set method for struct member 'max_shear'.
|
void |
setMax_struct(float max_struct)
Set method for struct member 'max_struct'.
|
void |
setMaxgoal(float maxgoal)
Set method for struct member 'maxgoal'.
|
void |
setMaxspringlen(int maxspringlen)
Set method for struct member 'maxspringlen'.
|
void |
setMingoal(float mingoal)
Set method for struct member 'mingoal'.
|
void |
setPad(int pad)
Set method for struct member 'pad'.
|
void |
setPad0(CArrayFacade<java.lang.Byte> pad0)
Set method for struct member 'pad0'.
|
void |
setPreroll(int preroll)
Deprecated.
DeprecatedHow many frames of simulation to do before we start.
|
void |
setPresets(short presets)
Set method for struct member 'presets'.
|
void |
setReset(short reset)
Set method for struct member 'reset'.
|
void |
setShapekey_rest(short shapekey_rest)
Set method for struct member 'shapekey_rest'.
|
void |
setShear(float shear)
Set method for struct member 'shear'.
|
void |
setShrink_max(float shrink_max)
Set method for struct member 'shrink_max'.
|
void |
setShrink_min(float shrink_min)
Set method for struct member 'shrink_min'.
|
void |
setSim_time_old(float sim_time_old)
Set method for struct member 'sim_time_old'.
|
void |
setSolver_type(short solver_type)
Set method for struct member 'solver_type'.
|
void |
setStepsPerFrame(int stepsPerFrame)
Set method for struct member 'stepsPerFrame'.
|
void |
setStructural(float structural)
Set method for struct member 'structural'.
|
void |
setTime_scale(float time_scale)
Set method for struct member 'time_scale'.
|
void |
setTimescale(float timescale)
Set method for struct member 'timescale'.
|
void |
setVel_damping(float vel_damping)
Set method for struct member 'vel_damping'.
|
void |
setVelocity_smooth(float velocity_smooth)
Set method for struct member 'velocity_smooth'.
|
void |
setVgroup_bend(short vgroup_bend)
Set method for struct member 'vgroup_bend'.
|
void |
setVgroup_mass(short vgroup_mass)
Set method for struct member 'vgroup_mass'.
|
void |
setVgroup_shrink(short vgroup_shrink)
Set method for struct member 'vgroup_shrink'.
|
void |
setVgroup_struct(short vgroup_struct)
Set method for struct member 'vgroup_struct'.
|
void |
setVoxel_cell_size(float voxel_cell_size)
Set method for struct member 'voxel_cell_size'.
|
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for ClothSimSettings.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__cache
UNUSED atm
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__cache); CPointer<CPointer<Object>> p_cache = p.cast(new Class[]{CPointer.class, Object.class});
public static final long[] __DNA__FIELD__mingoal
see SB
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__mingoal); CPointer<Float> p_mingoal = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__Cdis
Mechanical damping of springs.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__Cdis); CPointer<Float> p_Cdis = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__Cvi
Viscous/fluid damping.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__Cvi); CPointer<Float> p_Cvi = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__gravity
Gravity/external force vector.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__gravity); CPointer<CArrayFacade<Float>> p_gravity = p.cast(new Class[]{CArrayFacade.class, Float.class});
public static final long[] __DNA__FIELD__dt
This is the duration of our time step, computed.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__dt); CPointer<Float> p_dt = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__mass
The mass of the entire cloth.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__mass); CPointer<Float> p_mass = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__structural
Structural spring stiffness.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__structural); CPointer<Float> p_structural = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__shear
Shear spring stiffness.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__shear); CPointer<Float> p_shear = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__bending
Flexion spring stiffness.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__bending); CPointer<Float> p_bending = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__max_bend
max bending scaling value, min is "bending"
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__max_bend); CPointer<Float> p_max_bend = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__max_struct
max structural scaling value, min is "structural"
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__max_struct); CPointer<Float> p_max_struct = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__max_shear
max shear scaling value, UNUSED
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__max_shear); CPointer<Float> p_max_shear = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__max_sewing
max sewing force
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__max_sewing); CPointer<Float> p_max_sewing = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__avg_spring_len
used for normalized springs
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__avg_spring_len); CPointer<Float> p_avg_spring_len = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__timescale
parameter how fast cloth runs
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__timescale); CPointer<Float> p_timescale = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__time_scale
multiplies cloth speed
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__time_scale); CPointer<Float> p_time_scale = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__maxgoal
see SB
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__maxgoal); CPointer<Float> p_maxgoal = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__eff_force_scale
Scaling of effector forces (see softbody_calc_forces).
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__eff_force_scale); CPointer<Float> p_eff_force_scale = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__eff_wind_scale
Scaling of effector wind (see softbody_calc_forces).
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__eff_wind_scale); CPointer<Float> p_eff_wind_scale = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__sim_time_old
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__sim_time_old); CPointer<Float> p_sim_time_old = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__defgoal
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__defgoal); CPointer<Float> p_defgoal = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__goalspring
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__goalspring); CPointer<Float> p_goalspring = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__goalfrict
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__goalfrict); CPointer<Float> p_goalfrict = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__velocity_smooth
smoothing of velocities for hair
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__velocity_smooth); CPointer<Float> p_velocity_smooth = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__density_target
minimum density for hair
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__density_target); CPointer<Float> p_density_target = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__density_strength
influence of hair density
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__density_strength); CPointer<Float> p_density_strength = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__collider_friction
friction with colliders
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__collider_friction); CPointer<Float> p_collider_friction = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__vel_damping
damp the velocity to speed up getting to the resting position
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__vel_damping); CPointer<Float> p_vel_damping = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__shrink_min
min amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__shrink_min); CPointer<Float> p_shrink_min = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__shrink_max
max amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__shrink_max); CPointer<Float> p_shrink_max = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__bending_damping
XXX various hair stuff should really be separate, this struct is a horrible mess alreadydamping of bending springs
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__bending_damping); CPointer<Float> p_bending_damping = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__voxel_cell_size
size of voxel grid cells for continuum dynamics
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__voxel_cell_size); CPointer<Float> p_voxel_cell_size = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__pad
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__pad); CPointer<Integer> p_pad = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__stepsPerFrame
Number of time steps per frame.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__stepsPerFrame); CPointer<Integer> p_stepsPerFrame = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__flags
flags, see CSIMSETT_FLAGS enum above.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__flags); CPointer<Integer> p_flags = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__preroll
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__preroll); CPointer<Integer> p_preroll = p.cast(new Class[]{Integer.class});
How many frames of simulation to do before we start.
public static final long[] __DNA__FIELD__maxspringlen
in percent!; if tearing enabled, a spring will get cut
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__maxspringlen); CPointer<Integer> p_maxspringlen = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__solver_type
which solver should be used? txold
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__solver_type); CPointer<Short> p_solver_type = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__vgroup_bend
vertex group for scaling bending stiffness
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__vgroup_bend); CPointer<Short> p_vgroup_bend = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__vgroup_mass
optional vertexgroup name for assigning weight.
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__vgroup_mass); CPointer<Short> p_vgroup_mass = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__vgroup_struct
vertex group for scaling structural stiffness
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__vgroup_struct); CPointer<Short> p_vgroup_struct = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__vgroup_shrink
vertex group for shrinking cloth
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__vgroup_shrink); CPointer<Short> p_vgroup_shrink = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__shapekey_rest
vertex group for scaling structural stiffness
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__shapekey_rest); CPointer<Short> p_shapekey_rest = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__presets
used for presets on GUI
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__presets); CPointer<Short> p_presets = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__reset
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__reset); CPointer<Short> p_reset = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__pad0
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__pad0); CPointer<CArrayFacade<Byte>> p_pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__effector_weights
This is how you get a reference on the corresponding field in the struct:
ClothSimSettings clothsimsettings = ...; CPointer<Object> p = clothsimsettings.__dna__addressof(ClothSimSettings.__DNA__FIELD__effector_weights); CPointer<CPointer<EffectorWeights>> p_effector_weights = p.cast(new Class[]{CPointer.class, EffectorWeights.class});
public ClothSimSettings(long __address, Block __block, BlockTable __blockTable)
protected ClothSimSettings(ClothSimSettings that)
public CPointer<java.lang.Object> getCache() throws java.io.IOException
UNUSED atm
java.io.IOException
__DNA__FIELD__cache
public void setCache(CPointer<java.lang.Object> cache) throws java.io.IOException
UNUSED atm
java.io.IOException
__DNA__FIELD__cache
public float getMingoal() throws java.io.IOException
see SB
java.io.IOException
__DNA__FIELD__mingoal
public void setMingoal(float mingoal) throws java.io.IOException
see SB
java.io.IOException
__DNA__FIELD__mingoal
public float getCdis() throws java.io.IOException
Mechanical damping of springs.
java.io.IOException
__DNA__FIELD__Cdis
public void setCdis(float Cdis) throws java.io.IOException
Mechanical damping of springs.
java.io.IOException
__DNA__FIELD__Cdis
public float getCvi() throws java.io.IOException
Viscous/fluid damping.
java.io.IOException
__DNA__FIELD__Cvi
public void setCvi(float Cvi) throws java.io.IOException
Viscous/fluid damping.
java.io.IOException
__DNA__FIELD__Cvi
public CArrayFacade<java.lang.Float> getGravity() throws java.io.IOException
Gravity/external force vector.
java.io.IOException
__DNA__FIELD__gravity
public void setGravity(CArrayFacade<java.lang.Float> gravity) throws java.io.IOException
Gravity/external force vector.
java.io.IOException
__DNA__FIELD__gravity
public float getDt() throws java.io.IOException
This is the duration of our time step, computed.
java.io.IOException
__DNA__FIELD__dt
public void setDt(float dt) throws java.io.IOException
This is the duration of our time step, computed.
java.io.IOException
__DNA__FIELD__dt
public float getMass() throws java.io.IOException
The mass of the entire cloth.
java.io.IOException
__DNA__FIELD__mass
public void setMass(float mass) throws java.io.IOException
The mass of the entire cloth.
java.io.IOException
__DNA__FIELD__mass
public float getStructural() throws java.io.IOException
Structural spring stiffness.
java.io.IOException
__DNA__FIELD__structural
public void setStructural(float structural) throws java.io.IOException
Structural spring stiffness.
java.io.IOException
__DNA__FIELD__structural
public float getShear() throws java.io.IOException
Shear spring stiffness.
java.io.IOException
__DNA__FIELD__shear
public void setShear(float shear) throws java.io.IOException
Shear spring stiffness.
java.io.IOException
__DNA__FIELD__shear
public float getBending() throws java.io.IOException
Flexion spring stiffness.
java.io.IOException
__DNA__FIELD__bending
public void setBending(float bending) throws java.io.IOException
Flexion spring stiffness.
java.io.IOException
__DNA__FIELD__bending
public float getMax_bend() throws java.io.IOException
max bending scaling value, min is "bending"
java.io.IOException
__DNA__FIELD__max_bend
public void setMax_bend(float max_bend) throws java.io.IOException
max bending scaling value, min is "bending"
java.io.IOException
__DNA__FIELD__max_bend
public float getMax_struct() throws java.io.IOException
max structural scaling value, min is "structural"
java.io.IOException
__DNA__FIELD__max_struct
public void setMax_struct(float max_struct) throws java.io.IOException
max structural scaling value, min is "structural"
java.io.IOException
__DNA__FIELD__max_struct
public float getMax_shear() throws java.io.IOException
max shear scaling value, UNUSED
java.io.IOException
__DNA__FIELD__max_shear
public void setMax_shear(float max_shear) throws java.io.IOException
max shear scaling value, UNUSED
java.io.IOException
__DNA__FIELD__max_shear
public float getMax_sewing() throws java.io.IOException
max sewing force
java.io.IOException
__DNA__FIELD__max_sewing
public void setMax_sewing(float max_sewing) throws java.io.IOException
max sewing force
java.io.IOException
__DNA__FIELD__max_sewing
public float getAvg_spring_len() throws java.io.IOException
used for normalized springs
java.io.IOException
__DNA__FIELD__avg_spring_len
public void setAvg_spring_len(float avg_spring_len) throws java.io.IOException
used for normalized springs
java.io.IOException
__DNA__FIELD__avg_spring_len
public float getTimescale() throws java.io.IOException
parameter how fast cloth runs
java.io.IOException
__DNA__FIELD__timescale
public void setTimescale(float timescale) throws java.io.IOException
parameter how fast cloth runs
java.io.IOException
__DNA__FIELD__timescale
public float getTime_scale() throws java.io.IOException
multiplies cloth speed
java.io.IOException
__DNA__FIELD__time_scale
public void setTime_scale(float time_scale) throws java.io.IOException
multiplies cloth speed
java.io.IOException
__DNA__FIELD__time_scale
public float getMaxgoal() throws java.io.IOException
see SB
java.io.IOException
__DNA__FIELD__maxgoal
public void setMaxgoal(float maxgoal) throws java.io.IOException
see SB
java.io.IOException
__DNA__FIELD__maxgoal
public float getEff_force_scale() throws java.io.IOException
Scaling of effector forces (see softbody_calc_forces).
java.io.IOException
__DNA__FIELD__eff_force_scale
public void setEff_force_scale(float eff_force_scale) throws java.io.IOException
Scaling of effector forces (see softbody_calc_forces).
java.io.IOException
__DNA__FIELD__eff_force_scale
public float getEff_wind_scale() throws java.io.IOException
Scaling of effector wind (see softbody_calc_forces).
java.io.IOException
__DNA__FIELD__eff_wind_scale
public void setEff_wind_scale(float eff_wind_scale) throws java.io.IOException
Scaling of effector wind (see softbody_calc_forces).
java.io.IOException
__DNA__FIELD__eff_wind_scale
public float getSim_time_old() throws java.io.IOException
java.io.IOException
__DNA__FIELD__sim_time_old
public void setSim_time_old(float sim_time_old) throws java.io.IOException
java.io.IOException
__DNA__FIELD__sim_time_old
public float getDefgoal() throws java.io.IOException
java.io.IOException
__DNA__FIELD__defgoal
public void setDefgoal(float defgoal) throws java.io.IOException
java.io.IOException
__DNA__FIELD__defgoal
public float getGoalspring() throws java.io.IOException
java.io.IOException
__DNA__FIELD__goalspring
public void setGoalspring(float goalspring) throws java.io.IOException
java.io.IOException
__DNA__FIELD__goalspring
public float getGoalfrict() throws java.io.IOException
java.io.IOException
__DNA__FIELD__goalfrict
public void setGoalfrict(float goalfrict) throws java.io.IOException
java.io.IOException
__DNA__FIELD__goalfrict
public float getVelocity_smooth() throws java.io.IOException
smoothing of velocities for hair
java.io.IOException
__DNA__FIELD__velocity_smooth
public void setVelocity_smooth(float velocity_smooth) throws java.io.IOException
smoothing of velocities for hair
java.io.IOException
__DNA__FIELD__velocity_smooth
public float getDensity_target() throws java.io.IOException
minimum density for hair
java.io.IOException
__DNA__FIELD__density_target
public void setDensity_target(float density_target) throws java.io.IOException
minimum density for hair
java.io.IOException
__DNA__FIELD__density_target
public float getDensity_strength() throws java.io.IOException
influence of hair density
java.io.IOException
__DNA__FIELD__density_strength
public void setDensity_strength(float density_strength) throws java.io.IOException
influence of hair density
java.io.IOException
__DNA__FIELD__density_strength
public float getCollider_friction() throws java.io.IOException
friction with colliders
java.io.IOException
__DNA__FIELD__collider_friction
public void setCollider_friction(float collider_friction) throws java.io.IOException
friction with colliders
java.io.IOException
__DNA__FIELD__collider_friction
public float getVel_damping() throws java.io.IOException
damp the velocity to speed up getting to the resting position
java.io.IOException
__DNA__FIELD__vel_damping
public void setVel_damping(float vel_damping) throws java.io.IOException
damp the velocity to speed up getting to the resting position
java.io.IOException
__DNA__FIELD__vel_damping
public float getShrink_min() throws java.io.IOException
min amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
java.io.IOException
__DNA__FIELD__shrink_min
public void setShrink_min(float shrink_min) throws java.io.IOException
min amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
java.io.IOException
__DNA__FIELD__shrink_min
public float getShrink_max() throws java.io.IOException
max amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
java.io.IOException
__DNA__FIELD__shrink_max
public void setShrink_max(float shrink_max) throws java.io.IOException
max amount to shrink cloth by 0.0f (no shrink) - 1.0f (shrink to nothing)
java.io.IOException
__DNA__FIELD__shrink_max
public float getBending_damping() throws java.io.IOException
XXX various hair stuff should really be separate, this struct is a horrible mess alreadydamping of bending springs
java.io.IOException
__DNA__FIELD__bending_damping
public void setBending_damping(float bending_damping) throws java.io.IOException
XXX various hair stuff should really be separate, this struct is a horrible mess alreadydamping of bending springs
java.io.IOException
__DNA__FIELD__bending_damping
public float getVoxel_cell_size() throws java.io.IOException
size of voxel grid cells for continuum dynamics
java.io.IOException
__DNA__FIELD__voxel_cell_size
public void setVoxel_cell_size(float voxel_cell_size) throws java.io.IOException
size of voxel grid cells for continuum dynamics
java.io.IOException
__DNA__FIELD__voxel_cell_size
public int getPad() throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad
public void setPad(int pad) throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad
public int getStepsPerFrame() throws java.io.IOException
Number of time steps per frame.
java.io.IOException
__DNA__FIELD__stepsPerFrame
public void setStepsPerFrame(int stepsPerFrame) throws java.io.IOException
Number of time steps per frame.
java.io.IOException
__DNA__FIELD__stepsPerFrame
public int getFlags() throws java.io.IOException
flags, see CSIMSETT_FLAGS enum above.
java.io.IOException
__DNA__FIELD__flags
public void setFlags(int flags) throws java.io.IOException
flags, see CSIMSETT_FLAGS enum above.
java.io.IOException
__DNA__FIELD__flags
public int getPreroll() throws java.io.IOException
How many frames of simulation to do before we start.
java.io.IOException
__DNA__FIELD__preroll
public void setPreroll(int preroll) throws java.io.IOException
How many frames of simulation to do before we start.
java.io.IOException
__DNA__FIELD__preroll
public int getMaxspringlen() throws java.io.IOException
in percent!; if tearing enabled, a spring will get cut
java.io.IOException
__DNA__FIELD__maxspringlen
public void setMaxspringlen(int maxspringlen) throws java.io.IOException
in percent!; if tearing enabled, a spring will get cut
java.io.IOException
__DNA__FIELD__maxspringlen
public short getSolver_type() throws java.io.IOException
which solver should be used? txold
java.io.IOException
__DNA__FIELD__solver_type
public void setSolver_type(short solver_type) throws java.io.IOException
which solver should be used? txold
java.io.IOException
__DNA__FIELD__solver_type
public short getVgroup_bend() throws java.io.IOException
vertex group for scaling bending stiffness
java.io.IOException
__DNA__FIELD__vgroup_bend
public void setVgroup_bend(short vgroup_bend) throws java.io.IOException
vertex group for scaling bending stiffness
java.io.IOException
__DNA__FIELD__vgroup_bend
public short getVgroup_mass() throws java.io.IOException
optional vertexgroup name for assigning weight.
java.io.IOException
__DNA__FIELD__vgroup_mass
public void setVgroup_mass(short vgroup_mass) throws java.io.IOException
optional vertexgroup name for assigning weight.
java.io.IOException
__DNA__FIELD__vgroup_mass
public short getVgroup_struct() throws java.io.IOException
vertex group for scaling structural stiffness
java.io.IOException
__DNA__FIELD__vgroup_struct
public void setVgroup_struct(short vgroup_struct) throws java.io.IOException
vertex group for scaling structural stiffness
java.io.IOException
__DNA__FIELD__vgroup_struct
public short getVgroup_shrink() throws java.io.IOException
vertex group for shrinking cloth
java.io.IOException
__DNA__FIELD__vgroup_shrink
public void setVgroup_shrink(short vgroup_shrink) throws java.io.IOException
vertex group for shrinking cloth
java.io.IOException
__DNA__FIELD__vgroup_shrink
public short getShapekey_rest() throws java.io.IOException
vertex group for scaling structural stiffness
java.io.IOException
__DNA__FIELD__shapekey_rest
public void setShapekey_rest(short shapekey_rest) throws java.io.IOException
vertex group for scaling structural stiffness
java.io.IOException
__DNA__FIELD__shapekey_rest
public short getPresets() throws java.io.IOException
used for presets on GUI
java.io.IOException
__DNA__FIELD__presets
public void setPresets(short presets) throws java.io.IOException
used for presets on GUI
java.io.IOException
__DNA__FIELD__presets
public short getReset() throws java.io.IOException
java.io.IOException
__DNA__FIELD__reset
public void setReset(short reset) throws java.io.IOException
java.io.IOException
__DNA__FIELD__reset
public CArrayFacade<java.lang.Byte> getPad0() throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad0
public void setPad0(CArrayFacade<java.lang.Byte> pad0) throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad0
public CPointer<EffectorWeights> getEffector_weights() throws java.io.IOException
java.io.IOException
__DNA__FIELD__effector_weights
public void setEffector_weights(CPointer<EffectorWeights> effector_weights) throws java.io.IOException
java.io.IOException
__DNA__FIELD__effector_weights
public CPointer<ClothSimSettings> __io__addressof()