public class DwSoftGrid3D extends DwSoftBody3D
DwSoftBody3D.CustomParticle3D| Modifier and Type | Field and Description |
|---|---|
int |
bend_spring_dist |
int |
bend_spring_mode |
float |
nodes_r |
int |
nodes_x |
int |
nodes_y |
int |
nodes_z |
float |
normal_dir |
float[][][] |
normals |
processing.opengl.PGraphics2D |
texture_XYn |
processing.opengl.PGraphics2D |
texture_XYp |
processing.opengl.PGraphics2D |
texture_XZn |
processing.opengl.PGraphics2D |
texture_XZp |
processing.opengl.PGraphics2D |
texture_YZn |
processing.opengl.PGraphics2D |
texture_YZp |
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 |
|---|
DwSoftGrid3D() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpring(int ax,
int ay,
int az,
int offx,
int offy,
int offz,
DwSpringConstraint.TYPE type) |
void |
computeNormals() |
void |
create(DwPhysics<DwParticle3D> physics,
int nx,
int ny,
int nz,
float nr,
float start_x,
float start_y,
float start_z) |
void |
createShapeMesh(processing.core.PGraphics pg) |
void |
createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style) |
void |
displayNormals(processing.core.PGraphics pg) |
DwParticle |
getNode(int x,
int y,
int z) |
DwParticle3D |
getNode3D(int x,
int y,
int z) |
createShapeParticles, createShapeParticles, displaySprings, updateParticlesShapesdisplayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColorpublic int nodes_x
public int nodes_y
public int nodes_z
public float nodes_r
public processing.opengl.PGraphics2D texture_XYp
public processing.opengl.PGraphics2D texture_XYn
public processing.opengl.PGraphics2D texture_YZp
public processing.opengl.PGraphics2D texture_YZn
public processing.opengl.PGraphics2D texture_XZp
public processing.opengl.PGraphics2D texture_XZn
public int bend_spring_mode
public int bend_spring_dist
public float[][][] normals
public float normal_dir
public void create(DwPhysics<DwParticle3D> physics, int nx, int ny, int nz, float nr, float start_x, float start_y, float start_z)
public DwParticle getNode(int x, int y, int z)
public DwParticle3D getNode3D(int x, int y, int z)
public void addSpring(int ax,
int ay,
int az,
int offx,
int offy,
int offz,
DwSpringConstraint.TYPE type)
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