Interface: Topology¶
CPU-side graph and geometry used to build network render buffers.
Remarks¶
vertexCoords and polylinePoints are interleaved coordinate pairs. Flat
and tilt projections accept arbitrary x, y coordinates. Globe projection
is available when coordinates fit geographic longitude and latitude bounds.
polylineStart is an offset table into polylinePoints. It must contain
edgeCount + 1 entries, begin at 0, stay monotonic, and end at the number
of polyline points. Straight edges with no bend points can use a zero-filled
table.
Example¶
const topology: Topology = {
vertexCount: 3,
vertexCoords: new Float32Array([-96, 30, -95, 31, -94, 30]),
edges: new Uint32Array([0, 1, 1, 2]),
polylineStart: new Uint32Array([0, 0, 0]),
};
Properties¶
Property |
Modifier |
Type |
Description |
|---|---|---|---|
|
|
Edge endpoint vertex indices stored as |
|
|
|
Optional intermediate |
|
|
|
Edge-to-polyline offset table with |
|
|
|
Optional |
|
|
|
Number of logical graph vertices. |