Divooka Reference

Staging Bridges

4 nodes

On this page 4

Mesh From Mesh Data

Function

A mesh made by the modelling toolboxes - positions, faces of any size, and the normals and texture coordinates its corners carry - as a mesh a scene can place.

Signature
MeshFromMeshData -> Mesh Element
    mesh: Streamed Vertex Mesh Data
    yUp: Truth
    name: Text
MeshElement MeshFromMeshData(
    StreamedVertexMeshData mesh,
    bool yUp = false,
    string name = "")

Parameters

nametypedefaultdescription
meshStreamed Vertex Mesh Data—The mesh.
yUpTruthFalseWhether it was made with +Y up, as a glTF or a material's sample mesh is, so it is stood up in this +Z-up world.
nameText—Its name in the scene.

Returns

resultMesh Element
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Staging Bridges
Package
Computer Graphics

Mesh From N Gon Mesh

Function

A many-sided mesh, as the shape grammars, trees and OBJ readers make one, as a mesh a scene can place.

Signature
MeshFromNGonMesh -> Mesh Element
    mesh: N-gon Geometry
    yUp: Truth
    name: Text
MeshElement MeshFromNGonMesh(
    NGonFaceIndexMesh mesh,
    bool yUp = false,
    string name = "")

Parameters

nametypedefaultdescription
meshN-gon Geometry—The mesh; its corners count its positions from 1, as an OBJ file does.
yUpTruthFalseWhether it was made with +Y up.
nameText—Its name in the scene; empty for the mesh's own material name or "Mesh".

Returns

resultMesh Element
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Staging Bridges
Package
Computer Graphics

Mesh From Solid

Function

A solid from the Solids toolbox - a boolean of boxes, a hull, a gear - as a mesh a scene can place.

Signature
MeshFromSolid -> Mesh Element
    solid: Manifold
    smooth: Truth
    name: Text
MeshElement MeshFromSolid(
    Manifold solid,
    bool smooth = false,
    string name = "")

Parameters

nametypedefaultdescription
solidManifold—The solid.
smoothTruthFalseWhether its faces are shaded smoothly across their edges, for a solid that approximates a curved surface; off for a machined part's flat faces and crisp edges.
nameText—Its name in the scene.

Returns

resultMesh Element
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Staging Bridges
Package
Computer Graphics

Procedural Material

Function

A procedural PBR material from the Materials toolbox, as a material a scene can paint with: its base colour, normal, roughness and metallic baked into maps, its emission when it glows.

Signature
ProceduralMaterial -> Material Description
    material: PBR Material
    tiling: Number
    resolution: Integer
    tilingV: Number
MaterialDescription ProceduralMaterial(
    PbrMaterial material,
    double tiling = 1,
    int resolution = 0,
    double tilingV = 0)

Parameters

nametypedefaultdescription
materialPBR Material—The material.
tilingNumber1How many times its maps repeat across a surface's texture coordinates: a shape's run 0 to 1 across each face, so a floor 4 metres wide of a material whose tile is 1 metre wants 4.
resolutionInteger0The maps' size in pixels; 0 for the material's own.
tilingVNumber0How many times they repeat in the texture's second direction, which runs up each side of a box; 0 for the same as Tiling. A wall 7 metres long and 2.4 high of a material whose tile is 2.4 metres wants a tiling of 3 and a tiling V of 1, or its bricks are squashed.

Returns

resultMaterial Description

Remarks

An opacity map is not carried, since the surface's opacity is one number here; a see-through material keeps its average. Sheen, transmission, iridescence and anisotropy have no place in a UsdPreviewSurface and are left out, as the Materials package's own glTF export leaves those out of a renderer that lacks them.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Staging Bridges
Package
Computer Graphics