Divooka Reference

Heightmap Mesher

2 nodes

On this page 2

Convert Terrain to Grid Mesh with Resample

Function

This node carries no documentation.

Signature
ToGridMeshResample -> N-gon Geometry
    terrain: Scalar Field
    rows: Integer
    columns: Integer
    generateBase: Truth
    baseHeightOffset: Number
NGonFaceIndexMesh ToGridMeshResample(
    ScalarField2D terrain,
    int rows = 100,
    int columns = 100,
    bool generateBase = true,
    double baseHeightOffset = 50)

Parameters

nametypedefaultdescription
terrainScalar Field—
rowsInteger100
columnsInteger100
generateBaseTruthTrueGenerate surrounding base walls for the mesh.
baseHeightOffsetNumber50Height of base in world units.

Returns

resultN-gon Geometry
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Mesher
Package
Procedural Generation

Convert Terrain to Triangle Mesh (Optimized)

Function

This node carries no documentation.

Signature
ToOptimizedTriangleMesh -> Vertex Data Triangle Mesh Builder
    terrain: Scalar Field
    elevationErrorTolerance: Number
    maxVertices: Integer
VertexDataTriangleMeshBuilder ToOptimizedTriangleMesh(
    ScalarField2D terrain,
    double elevationErrorTolerance = 0.01,
    int maxVertices = 20000)

Parameters

nametypedefaultdescription
terrainScalar Field—
elevationErrorToleranceNumber0.01Value between (0,1) indicating how detailed we want to be. A value of 0.01 means 1% error tolerance
maxVerticesInteger20000Currenty cannot do anything higher than 1K*1K efficiently, aka. 1M vertices is practical limit.

Returns

resultVertex Data Triangle Mesh Builder
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Heightmap Mesher
Package
Procedural Generation