Skip to main content

Module bridge

Module bridge 

Source
Expand description

Bridging two boundary loops with a triangle tube.

bridge_loops stitches a tube between two boundary loops identified by LoopId. The correspondence is a minimum-area dynamic program over the loop-by-loop grid with a full start search, so loops of different lengths zip without twist. The loops must wind in opposite directions (their Newell vectors must oppose); same-winding loops admit no outward tube that is manifold at both rims and are rejected. The whole strip is planned first and committed through one Transaction, so the call is atomic.

Structs§

BridgeOptions
Options for bridge_loops.
BridgeOptionsBuilder
Builder for BridgeOptions.
BridgeReport
Outcome of bridge_loops.

Constants§

BRIDGE_DEFAULT_MAX_EDGES
Default cap on each loop’s length in vertices. Explicit max_edges overrides it; the dynamic program costs O(starts x cells), so raising the bound past a few hundred gets slow before it gets big.

Functions§

bridge_loops
Stitches a tube between the two loops in options.