Divooka Reference

3D Preview Scene

9 nodes

On this page 9

Assign Object Color Material

Function

This node carries no documentation.

Overload 1 of 2

Signature
AssignObjectColorMaterial -> Preview Geometry
    geometry: N-gon Geometry
    color: Color
PreviewNGonGeometryInstance AssignObjectColorMaterial(
    NGonFaceIndexMesh geometry,
    ColorElement color)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—
colorColor—

Returns

resultPreview Geometry

Overload 2 of 2

Signature
AssignObjectColorMaterial -> Preview Geometry
    object: Preview Geometry
    color: Color
PreviewNGonGeometryInstance AssignObjectColorMaterial(
    PreviewNGonGeometryInstance object,
    ColorElement color)

Parameters

nametypedefaultdescription
objectPreview Geometry—
colorColor—

Returns

resultPreview Geometry

Remarks

The object stays where it was placed (round 26: it used to go back to the origin).

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Assign Random Object Color

Function

This node carries no documentation.

Overload 1 of 2

Signature
AssignRandomObjectColor(geometry: N-gon Geometry) -> Preview Geometry
PreviewNGonGeometryInstance AssignRandomObjectColor(NGonFaceIndexMesh geometry)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—

Returns

resultPreview Geometry

Overload 2 of 2

Signature
AssignRandomObjectColor(object: Preview Geometry) -> Preview Geometry
PreviewNGonGeometryInstance AssignRandomObjectColor(PreviewNGonGeometryInstance object)

Parameters

nametypedefaultdescription
objectPreview Geometry—

Returns

resultPreview Geometry

Remarks

The object stays where it was placed (round 26: it used to go back to the origin).

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Combine

Function

This node carries no documentation.

Overload 1 of 4

Signature
Combine(geometries: N-gon Geometry Array) -> Preview Scene
SimplePreviewScene Combine(NGonFaceIndexMesh[] geometries)

Parameters

nametypedefaultdescription
geometriesN-gon Geometry Array—

Returns

resultPreview Scene

Overload 2 of 4

Signature
Combine(objects: Preview Geometry Array) -> Preview Scene
SimplePreviewScene Combine(PreviewNGonGeometryInstance[] objects)

Parameters

nametypedefaultdescription
objectsPreview Geometry Array—

Returns

resultPreview Scene

Overload 3 of 4

Signature
Combine(existing: Preview Scene Array) -> Preview Scene
SimplePreviewScene Combine(SimplePreviewScene[] existing)

Parameters

nametypedefaultdescription
existingPreview Scene Array—

Returns

resultPreview Scene

Overload 4 of 4

Signature
Combine -> Preview Scene
    scene: Preview Scene
    object: Preview Geometry
SimplePreviewScene Combine(
    SimplePreviewScene scene,
    PreviewNGonGeometryInstance object)

Parameters

nametypedefaultdescription
scenePreview Scene—
objectPreview Geometry—

Returns

resultPreview Scene
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Place

Function

Puts a group of objects somewhere, turned, as one thing: a character made of a body, a head and two eyes walks and turns whole.

Signature
Place -> Preview Scene
    group: Preview Scene
    position: Vector3d
    turn: Number
SimplePreviewScene Place(
    SimplePreviewScene group,
    Vector3d position,
    double turn = 0)

Parameters

nametypedefaultdescription
groupPreview Scene—The objects, placed around the group's origin.
positionVector3d—Where the group's origin goes.
turnNumber0How far it turns about the vertical, in degrees, counter-clockwise seen from above.

Returns

ScenePreview Scene

Remarks

Round 26. The group is turned about the vertical through its own origin by Turn, then moved by Position: each object keeps its place in the group, so the parts of a figure built around its feet stay together however it turns. A posed model is placed as a mesh is, keeping its pose, and a wireframe as well (round 26 follow-up).

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Rotate Object

Function

This node carries no documentation.

Overload 1 of 2

Signature
RotateObject -> Preview Geometry
    geometry: N-gon Geometry
    rotation: Vector3d
PreviewNGonGeometryInstance RotateObject(
    NGonFaceIndexMesh geometry,
    Vector3d rotation)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—
rotationVector3d—

Returns

resultPreview Geometry

Overload 2 of 2

Signature
RotateObject -> Preview Geometry
    object: Preview Geometry
    rotation: Vector3d
PreviewNGonGeometryInstance RotateObject(
    PreviewNGonGeometryInstance object,
    Vector3d rotation)

Parameters

nametypedefaultdescription
objectPreview Geometry—
rotationVector3d—

Returns

resultPreview Geometry

Remarks

Pure; Additive.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Scale Object

Function

This node carries no documentation.

Overload 1 of 2

Signature
ScaleObject -> Preview Geometry
    geometry: N-gon Geometry
    scale: Vector3d
PreviewNGonGeometryInstance ScaleObject(
    NGonFaceIndexMesh geometry,
    Vector3d scale)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—
scaleVector3d—

Returns

resultPreview Geometry

Overload 2 of 2

Signature
ScaleObject -> Preview Geometry
    object: Preview Geometry
    scale: Vector3d
PreviewNGonGeometryInstance ScaleObject(
    PreviewNGonGeometryInstance object,
    Vector3d scale)

Parameters

nametypedefaultdescription
objectPreview Geometry—
scaleVector3d—

Returns

resultPreview Geometry

Remarks

Pure; multiplies the scale the object already has.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Set Shade Smooth

Function

This node carries no documentation.

Overload 1 of 2

Signature
SetShadeSmooth -> Preview Geometry
    geometry: N-gon Geometry
    shadeSmooth: Truth
PreviewNGonGeometryInstance SetShadeSmooth(
    NGonFaceIndexMesh geometry,
    bool shadeSmooth = true)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—
shadeSmoothTruthTrue

Returns

resultPreview Geometry

Overload 2 of 2

Signature
SetShadeSmooth -> Preview Geometry
    object: Preview Geometry
    shadeSmooth: Truth
PreviewNGonGeometryInstance SetShadeSmooth(
    PreviewNGonGeometryInstance object,
    bool shadeSmooth = true)

Parameters

nametypedefaultdescription
objectPreview Geometry—
shadeSmoothTruthTrue

Returns

resultPreview Geometry

Remarks

The object keeps its colour and its place (round 26: it used to lose both).

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Translate

Function

Translate groups of objects.

Signature
Translate -> Preview Scene
    scene: Preview Scene
    translation: Vector3d
SimplePreviewScene Translate(
    SimplePreviewScene scene,
    Vector3d translation)

Parameters

nametypedefaultdescription
scenePreview Scene—
translationVector3d—

Returns

resultPreview Scene

Remarks

Doesn't work with wireframe objects.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation

Translate Object

Function

This node carries no documentation.

Overload 1 of 2

Signature
TranslateObject -> Preview Geometry
    geometry: N-gon Geometry
    translation: Vector3d
PreviewNGonGeometryInstance TranslateObject(
    NGonFaceIndexMesh geometry,
    Vector3d translation)

Parameters

nametypedefaultdescription
geometryN-gon Geometry—
translationVector3d—

Returns

resultPreview Geometry

Overload 2 of 2

Signature
TranslateObject -> Preview Geometry
    object: Preview Geometry
    translation: Vector3d
PreviewNGonGeometryInstance TranslateObject(
    PreviewNGonGeometryInstance object,
    Vector3d translation)

Parameters

nametypedefaultdescription
objectPreview Geometry—
translationVector3d—

Returns

resultPreview Geometry

Remarks

Pure; Additive.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
3D Preview Scene
Package
Procedural Generation