Skip to main content

connectivity_fast

Function connectivity_fast 

Source
pub fn connectivity_fast(blocks: &[Block]) -> (Vec<FaceMatch>, Vec<FaceRecord>)
Expand description

Connectivity computation performed on GCD-reduced blocks.

This is the main entry point for connectivity detection. It down-samples all blocks by the minimum GCD of their dimensions, runs the three-phase connectivity algorithm (see module docs), then scales indices back to the original resolution.

§Arguments

  • blocks - Original block list. Each block is down-sampled by the smallest index GCD across the set.

§Returns

Tuple (matches, outer_faces) where matches enumerates face interfaces and outer_faces records the remaining external surfaces at the original resolution.