Heightmap Mesher
2 nodes
On this page 2
Convert Terrain to Grid Mesh with Resample
FunctionThis node carries no documentation.
Signature
ToGridMeshResample -> N-gon Geometry
terrain: Scalar Field
rows: Integer
columns: Integer
generateBase: Truth
baseHeightOffset: NumberNGonFaceIndexMesh ToGridMeshResample(
ScalarField2D terrain,
int rows = 100,
int columns = 100,
bool generateBase = true,
double baseHeightOffset = 50)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | |
| rows | Integer | 100 | |
| columns | Integer | 100 | |
| generateBase | Truth | True | Generate surrounding base walls for the mesh. |
| baseHeightOffset | Number | 50 | Height of base in world units. |
Returns
| result | N-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)
FunctionThis node carries no documentation.
Signature
ToOptimizedTriangleMesh -> Vertex Data Triangle Mesh Builder
terrain: Scalar Field
elevationErrorTolerance: Number
maxVertices: IntegerVertexDataTriangleMeshBuilder ToOptimizedTriangleMesh(
ScalarField2D terrain,
double elevationErrorTolerance = 0.01,
int maxVertices = 20000)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | |
| elevationErrorTolerance | Number | 0.01 | Value between (0,1) indicating how detailed we want to be. A value of 0.01 means 1% error tolerance |
| maxVertices | Integer | 20000 | Currenty cannot do anything higher than 1K*1K efficiently, aka. 1M vertices is practical limit. |
Returns
| result | Vertex Data Triangle Mesh Builder |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Mesher
- Package
- Procedural Generation