Weed Physics
6 nodes
On this page 6
Advance
FunctionAdvances an immutable snapshot by additional frames, preserving particle positions, velocities, rest lengths, fixed anchors and the original integration settings. The input snapshot remains reusable for independent branches.
Advance -> Weed Cloth Result
state: Weed Cloth Result
frames: IntegerWeedClothResult Advance(WeedClothResult state, int frames = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| state | Weed Cloth Result | — | |
| frames | Integer | 1 |
Returns
| result | Weed Cloth Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD
Material
FunctionConstructs material values. Compliance is 1/stiffness and the stiffness-proportional damping time is damping/stiffness.
Material -> Weed Cloth Material
stiffness: Number
damping: Number
particleMass: Number
thickness: Number
friction: Number
restitution: NumberWeedClothMaterial Material(
double stiffness = 1000,
double damping = 10,
double particleMass = 1,
double thickness = 0.02,
double friction = 0,
double restitution = 0.7)Parameters
| name | type | default | description |
|---|---|---|---|
| stiffness | Number | 1000 | |
| damping | Number | 10 | |
| particleMass | Number | 1 | |
| thickness | Number | 0.02 | |
| friction | Number | 0 | |
| restitution | Number | 0.7 |
Returns
| result | Weed Cloth Material |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD
Mesh
FunctionReturns an owned preview mesh from a simulation result.
Mesh(result: Weed Cloth Result) -> Mesh
Mesh Mesh(WeedClothResult result)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Weed Cloth Result | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD
Reset
FunctionCreates a rest-state snapshot. Resetting does not retain velocities, contact state or elapsed time from a previous result.
Reset -> Weed Cloth Result
setup: Weed Cloth Setup
timeStep: Number
substeps: Integer
iterations: Integer
settledSpeed: NumberWeedClothResult Reset(
WeedClothSetup setup,
double timeStep = 0.016666666666666666,
int substeps = 10,
int iterations = 4,
double settledSpeed = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| setup | Weed Cloth Setup | — | |
| timeStep | Number | 0.016666666666666666 | |
| substeps | Integer | 10 | |
| iterations | Integer | 4 | |
| settledSpeed | Number | 0.001 |
Returns
| result | Weed Cloth Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD
Setup
FunctionCopies a cloth mesh, optional fixed vertex indices, fixed obstacle meshes and a uniform force per particle. Source coordinates are Z-up metres; no axis conversion is applied.
Setup -> Weed Cloth Setup
mesh: Mesh
obstacles: Mesh Array
force: Vector3d
material: Weed Cloth Material
anchors: Integer ArrayWeedClothSetup Setup(
Mesh mesh,
Mesh[] obstacles,
Vector3d force,
WeedClothMaterial material,
int[] anchors)Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — | |
| obstacles | Mesh Array | — | |
| force | Vector3d | — | |
| material | Weed Cloth Material | — | |
| anchors | Integer Array | — |
Returns
| result | Weed Cloth Setup |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD
Simulate
FunctionRuns deterministically from the setup's rest state for a fixed frame count. Re-evaluating resets the simulation; inputs are never mutated. A settled result requires twenty consecutive low-speed frames.
Simulate -> Weed Cloth Result
setup: Weed Cloth Setup
frames: Integer
timeStep: Number
substeps: Integer
iterations: Integer
settledSpeed: NumberWeedClothResult Simulate(
WeedClothSetup setup,
int frames = 600,
double timeStep = 0.016666666666666666,
int substeps = 10,
int iterations = 4,
double settledSpeed = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| setup | Weed Cloth Setup | — | |
| frames | Integer | 600 | |
| timeStep | Number | 0.016666666666666666 | |
| substeps | Integer | 10 | |
| iterations | Integer | 4 | |
| settledSpeed | Number | 0.001 |
Returns
| result | Weed Cloth Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Physics
- Package
- CAD