Divooka Reference

Results

20 nodes

On this page 20

Bodies Mesh

Function

Every body's surface in a frame as one mesh, for rendering. Grounds are left out.

Signature
BodiesMesh -> Streamed Vertex Mesh Data
    result: Simulation Result
    frame: Integer
StreamedVertexMeshData BodiesMesh(
    SimulationResult result,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
frameInteger—

Returns

resultStreamed Vertex Mesh Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Mesh

Function

One body's surface in a frame, placed in the world, for rendering. Grounds have none.

Signature
BodyMesh -> Streamed Vertex Mesh Data
    result: Simulation Result
    body: Text
    frame: Integer
StreamedVertexMeshData BodyMesh(
    SimulationResult result,
    string body,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
bodyText—
frameInteger—

Returns

resultStreamed Vertex Mesh Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Names

Function

The names of the bodies that exist in a frame, in the order they were made.

Signature
BodyNames -> Text Array
    result: Simulation Result
    frame: Integer
string[] BodyNames(SimulationResult result, int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
frameInteger—

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Path

Function

A body's position in every frame it exists in (a spawned body's path starts where it appeared).

Signature
BodyPath -> Vector3d Array
    result: Simulation Result
    body: Text
Vector3d[] BodyPath(SimulationResult result, string body)

Parameters

nametypedefaultdescription
resultSimulation Result—
bodyText—

Returns

resultVector3d Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Position

Function

Where a body is in a frame (m).

Signature
BodyPosition -> Vector3d
    result: Simulation Result
    body: Text
    frame: Integer
Vector3d BodyPosition(
    SimulationResult result,
    string body,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
bodyText—
frameInteger—

Returns

resultVector3d
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Rotation

Function

A body's orientation in a frame.

Signature
BodyRotation -> Quaterniond
    result: Simulation Result
    body: Text
    frame: Integer
Quaterniond BodyRotation(
    SimulationResult result,
    string body,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
bodyText—
frameInteger—

Returns

resultQuaterniond
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Body Velocity

Function

A body's velocity in a frame (m/s).

Signature
BodyVelocity -> Vector3d
    result: Simulation Result
    body: Text
    frame: Integer
Vector3d BodyVelocity(
    SimulationResult result,
    string body,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
bodyText—
frameInteger—

Returns

resultVector3d
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Cloth Mesh

Function

A cloth's surface in a frame, for rendering.

Signature
ClothMesh -> Streamed Vertex Mesh Data
    result: Simulation Result
    cloth: Text
    frame: Integer
StreamedVertexMeshData ClothMesh(
    SimulationResult result,
    string cloth,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
clothText—
frameInteger—

Returns

resultStreamed Vertex Mesh Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Events

Function

Every event of the run, in order.

Signature
Events(result: Simulation Result) -> Simulation Event Array
SimulationEvent[] Events(SimulationResult result)

Parameters

nametypedefaultdescription
resultSimulation Result—

Returns

resultSimulation Event Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Events Of

Function

The events one trigger recorded, in order.

Signature
EventsOf -> Simulation Event Array
    result: Simulation Result
    trigger: Text
SimulationEvent[] EventsOf(
    SimulationResult result,
    string trigger)

Parameters

nametypedefaultdescription
resultSimulation Result—
triggerText—

Returns

resultSimulation Event Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

First Event Time

Function

When a trigger first fired (s), or -1 if it never did.

Signature
FirstEventTime -> Number
    result: Simulation Result
    trigger: Text
double FirstEventTime(SimulationResult result, string trigger)

Parameters

nametypedefaultdescription
resultSimulation Result—
triggerText—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Frame At

Function

The frame nearest to a simulated time (s).

Signature
FrameAt(result: Simulation Result, time: Number) -> Integer
int FrameAt(SimulationResult result, double time)

Parameters

nametypedefaultdescription
resultSimulation Result—
timeNumber—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Frame Count

Function

The number of recorded frames, frame 0 included.

Signature
FrameCount(result: Simulation Result) -> Integer
int FrameCount(SimulationResult result)

Parameters

nametypedefaultdescription
resultSimulation Result—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Frame Time

Function

The simulated time of a frame (s).

Signature
FrameTime(result: Simulation Result, frame: Integer) -> Number
double FrameTime(SimulationResult result, int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
frameInteger—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Garment Mesh

Function

A whole garment's surface in a frame as one mesh: every piece ContinuumScene.AddGarment made for it, in the order they were added. The pieces stay separate surfaces that meet along their seams.

Signature
GarmentMesh -> Streamed Vertex Mesh Data
    result: Simulation Result
    garment: Text
    frame: Integer
StreamedVertexMeshData GarmentMesh(
    SimulationResult result,
    string garment,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—The simulation's result.
garmentText—The garment's name, as it was given to ContinuumScene.AddGarment.
frameInteger—The frame.

Returns

resultStreamed Vertex Mesh Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Get Frame

Function

One frame of the run.

Signature
GetFrame -> Simulation Frame
    result: Simulation Result
    frame: Integer
SimulationFrame GetFrame(SimulationResult result, int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
frameInteger—

Returns

resultSimulation Frame
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Moment

Function

The scene at a moment of the run: the recorded frame nearest a simulated time, which the 3D view draws - the bodies in their shapes and colours, the cloth and the water. Several Moment nodes selected together are drawn together.

Signature
Moment -> Simulation Frame
    result: Simulation Result
    time: Number
SimulationFrame Moment(SimulationResult result, double time)

Parameters

nametypedefaultdescription
resultSimulation Result—The run.
timeNumber—The moment (s); before the start is the start, past the end the end.

Returns

resultSimulation Frame
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Water Particle Count

Function

How many particles a water body has in a frame.

Signature
WaterParticleCount -> Integer
    result: Simulation Result
    water: Text
    frame: Integer
int WaterParticleCount(
    SimulationResult result,
    string water,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
waterText—
frameInteger—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Water Particles

Function

The positions of a water body's particles in a frame (m); empty if water was not recorded.

Signature
WaterParticles -> Vector3d Array
    result: Simulation Result
    water: Text
    frame: Integer
Vector3d[] WaterParticles(
    SimulationResult result,
    string water,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
waterText—
frameInteger—

Returns

resultVector3d Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation

Water Surface

Function

A water body's surface in a frame, reconstructed from its particles (Zhu and Bridson's method on a grid of a particle radius), for rendering: the upper surface and the splashes as one closed mesh.

Signature
WaterSurface -> Streamed Vertex Mesh Data
    result: Simulation Result
    water: Text
    frame: Integer
StreamedVertexMeshData WaterSurface(
    SimulationResult result,
    string water,
    int frame)

Parameters

nametypedefaultdescription
resultSimulation Result—
waterText—
frameInteger—

Returns

resultStreamed Vertex Mesh Data
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Results
Package
Physics Simulation