Geometry Converters
10 nodes
On this page 10
Build Rpr Mesh Data
FunctionThis node carries no documentation.
BuildRprMeshData -> Streamed Vertex Mesh Data
mesh: N-gon Geometry
generateSmoothNormals: TruthStreamedVertexMeshData BuildRprMeshData(
NGonFaceIndexMesh mesh,
bool generateSmoothNormals = false)Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | N-gon Geometry | — | |
| generateSmoothNormals | Truth | False | When true, missing normals are generated by averaging adjacent face normals at each shared position index. Explicit normals are preserved. |
Returns
| result | Streamed Vertex Mesh Data |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
Build Triangle Mesh Indices
FunctionAssume mostly it's triangle mesh already.
BuildTriangleMeshIndices(mesh: N-gon Geometry) -> Integer Array
int[] BuildTriangleMeshIndices(NGonFaceIndexMesh mesh)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | N-gon Geometry | — |
Returns
| result | Integer Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
Build Vertex Buffer
FunctionThis node carries no documentation.
BuildVertexBuffer -> Low Accuracy Number Array
mesh: N-gon Geometry
flipCoordinatePosition: Truthfloat[] BuildVertexBuffer(
NGonFaceIndexMesh mesh,
bool flipCoordinatePosition = true)Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | N-gon Geometry | — | |
| flipCoordinatePosition | Truth | True | Rudimentary coordinate handling. |
Returns
| result | Low Accuracy Number Array |
Remarks
Divooka -> RPR: rprPosition = (sourceY, sourceZ, sourceX).
This is a cyclic axis permutation with positive determinant, so face winding is preserved.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
Half Edge Mesh To N Gon
FunctionConverts Representations.HalfEdgeMesh back to Representations.NGonFaceIndexMesh.
Produces 1-based face indices.
Face and vertex order are preserved by ID order as stored in the mesh collections.
HalfEdgeMeshToNGon -> N-gon Geometry
source: Topology Mesh
materialName: Text
path: TextNGonFaceIndexMesh HalfEdgeMeshToNGon(
HalfEdgeMesh source,
string materialName,
string path = "/")Parameters
| name | type | default | description |
|---|---|---|---|
| source | Topology Mesh | — | |
| materialName | Text | — | |
| path | Text | / |
Returns
| result | N-gon Geometry |
Remarks
Edge IDs are not represented or preserved in Representations.NGonFaceIndexMesh.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
N Gon To Half Edge Mesh
FunctionConverts between editable half-edge topology and simple face-index mesh representation.
NGonToHalfEdgeMesh(source: N-gon Geometry) -> Topology Mesh
HalfEdgeMesh NGonToHalfEdgeMesh(NGonFaceIndexMesh source)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | N-gon Geometry | — |
Returns
| result | Topology Mesh |
Remarks
Converts Representations.NGonFaceIndexMesh to Representations.HalfEdgeMesh.
Assumes Representations.NGonFaceIndexMesh faces use 1-based indices.
Should be consistent with NGonFaceIndexMesh.BuildUniqueEdgeMap
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
To Half Edge Mesh
FunctionConverts streamed triangle or quad geometry into a half-edge mesh.
ToHalfEdgeMesh(source: Streamed Vertex Mesh Data) -> Topology Mesh
HalfEdgeMesh ToHalfEdgeMesh(StreamedVertexMeshData source)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Streamed Vertex Mesh Data | — |
Returns
| result | Topology Mesh |
Remarks
Converts positions and face topology only. Normals, texture coordinates, and colors are not preserved.
Input faces must have consistent winding and valid manifold-compatible topology.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
To Interleaved Mesh Data
FunctionOverload 1 of 2
ToInterleavedMeshData(mesh: Vertex Data Triangle Mesh Builder) -> Interleaved Triangle Geometry
InterleavedTriangleGeometry ToInterleavedMeshData(VertexDataTriangleMeshBuilder mesh)
Converts Representations.VertexDataTriangleMeshBuilder into rendering-ready interleaved triangle geometry.
Output layout per vertex:
pos3 normal3 uv2 tangent4.
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Vertex Data Triangle Mesh Builder | — |
Returns
| result | Interleaved Triangle Geometry |
Remarks
- Triangles are assumed 0-indexed.
- VertexNormals.Count == 0 means normals are generated.
- VertexNormals.Count == Vertices.Count means normals are used and normalized.
- UVs.Count == 0 means zero UVs are written.
- UVs.Count == Vertices.Count means UVs are used.
- Tangents are generated from UVs when possible.
Overload 2 of 2
ToInterleavedMeshData(mesh: N-gon Geometry) -> Interleaved Triangle Geometry
InterleavedTriangleGeometry ToInterleavedMeshData(NGonFaceIndexMesh mesh)
Converts an NGonFaceIndexMesh into flat triangle index buffers.
Output layout per vertex:
pos3 normal3 uv2 tangent4.
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | N-gon Geometry | — |
Returns
| result | Interleaved Triangle Geometry |
Remarks
- Faces are assumed 1-indexed, per NGonFaceIndexMesh contract.
- Faces with 3+ vertices are triangulated using a fan: (0,1,2), (0,2,3), ...
- Face-corner UV/normal seams are preserved by splitting render vertices by (position, uv, normal).
- Missing normals are generated from triangle geometry.
- Tangents are generated from UVs when possible.
- Color data is intentionally ignored because InterleavedTriangleGeometry has no color channel.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
To N Gon Face Index Mesh
FunctionConverts InterleavedTriangleGeometry back into an NGonFaceIndexMesh.
Produces only triangle faces, since the source no longer preserves original polygon grouping.
Lossy for non-triangle topology, as the original n-gon grouping is gone after triangulation.
Tangents are ignored because NGonFaceIndexMesh has no tangent stream.
ToNGonFaceIndexMesh(meshData: Interleaved Triangle Geometry) -> N-gon Geometry
NGonFaceIndexMesh ToNGonFaceIndexMesh(InterleavedTriangleGeometry meshData)
Parameters
| name | type | default | description |
|---|---|---|---|
| meshData | Interleaved Triangle Geometry | — |
Returns
| result | N-gon Geometry |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
To Streamed Vertex Mesh Data
FunctionConverts half-edge geometry into streamed indexed mesh data.
ToStreamedVertexMeshData(source: Topology Mesh) -> Streamed Vertex Mesh Data
StreamedVertexMeshData ToStreamedVertexMeshData(HalfEdgeMesh source)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Topology Mesh | — |
Returns
| result | Streamed Vertex Mesh Data |
Remarks
Converts positions and face topology only. Normal, texture coordinate, and color streams are not generated.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation
To Yet Another Triangle Mesh
FunctionConverts interleaved triangle geometry back into Representations.VertexDataTriangleMeshBuilder.
Produces one mesh vertex per interleaved render vertex, so previously split render vertices remain duplicated.
Tangents are ignored because Representations.VertexDataTriangleMeshBuilder has no tangent stream.
ToYetAnotherTriangleMesh(meshData: Interleaved Triangle Geometry) -> Vertex Data Triangle Mesh Builder
VertexDataTriangleMeshBuilder ToYetAnotherTriangleMesh(InterleavedTriangleGeometry meshData)
Parameters
| name | type | default | description |
|---|---|---|---|
| meshData | Interleaved Triangle Geometry | — |
Returns
| result | Vertex Data Triangle Mesh Builder |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Geometry Converters
- Package
- Procedural Generation