public class DwFoldingSoftBody extends DwSoftBody3D
| Modifier and Type | Class and Description |
|---|---|
class |
DwFoldingSoftBody.FoldingParticle3D |
DwSoftBody3D.CustomParticle3D| Modifier and Type | Field and Description |
|---|---|
float |
fold_value_stp |
DwFoldingModel |
foldingmodel |
float[][] |
normals_face |
display_normal_length, particlescollision_group_id, collision_radius_scale, CREATE_BEND_SPRINGS, CREATE_SHEAR_SPRINGS, CREATE_STRUCT_SPRINGS, material_color, nodes_offset, num_nodes, param_particle, param_spring, particle_color, particle_color2, particle_gray, physics, self_collisions, shade_springs_by_tension, shp_mesh, shp_particles, shp_wireframe, use_particles_color| Constructor and Description |
|---|
DwFoldingSoftBody() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFoldValue(float fold_value) |
void |
computeNormals() |
void |
create(DwPhysics<DwParticle3D> physics,
DwFoldingModel pattern_,
DwSpringConstraint.Param rigid,
DwSpringConstraint.Param soft) |
void |
createShapeMesh(processing.core.PGraphics pg) |
void |
createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style) |
void |
displayNormals(processing.core.PGraphics pg) |
DwParticle3D |
getNode(int idx) |
void |
manipSprings(float scale) |
void |
setFoldValue(float fold_value) |
void |
updateFoldValue() |
createShapeParticles, createShapeParticles, displaySprings, updateParticlesShapesdisplayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColorpublic DwFoldingModel foldingmodel
public float fold_value_stp
public float[][] normals_face
public void create(DwPhysics<DwParticle3D> physics, DwFoldingModel pattern_, DwSpringConstraint.Param rigid, DwSpringConstraint.Param soft)
public void addFoldValue(float fold_value)
public void setFoldValue(float fold_value)
public void updateFoldValue()
public void manipSprings(float scale)
public DwParticle3D getNode(int idx)
public void computeNormals()
computeNormals in class DwSoftBody3Dpublic void createShapeMesh(processing.core.PGraphics pg)
createShapeMesh in class DwSoftBodypublic void createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style)
createShapeWireframe in class DwSoftBodypublic void displayNormals(processing.core.PGraphics pg)
displayNormals in class DwSoftBody3DProcessing library PixelFlow by Thomas Diewald. (c) 2017