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, particles
collision_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, updateParticlesShapes
displayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColor
public 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 DwSoftBody3D
public void createShapeMesh(processing.core.PGraphics pg)
createShapeMesh
in class DwSoftBody
public void createShapeWireframe(processing.core.PGraphics pg, DwStrokeStyle style)
createShapeWireframe
in class DwSoftBody
public void displayNormals(processing.core.PGraphics pg)
displayNormals
in class DwSoftBody3D
Processing library PixelFlow by Thomas Diewald. (c) 2017