Skip to main content

block_as_gltf_data_with_pipe_length

Function block_as_gltf_data_with_pipe_length 

Source
pub fn block_as_gltf_data_with_pipe_length(
    block: &Block,
    g: &BlockGraph,
    pipe_length: f32,
) -> GltfData
Expand description

Builds the geometry for a single block, using pipe_length to size the gaps between blocks that pipes span.

The graph g is consulted for neighbor context (e.g. boundary orientation).

ยงPanics

Panics if an internally constructed Port block lacks its display color.