Skip to main content

Module patterns

Module patterns 

Source
Expand description

Pattern-based connectivity - wildcard matching and transformations.

Supports absolute patterns (*, ?, !, int) and source-relative directional patterns (?+, ?-, ?+=, ?-=, ?+N, ?-N, ?-N:?+M) for spatial connectivity.

Enums§

Direction
Direction along an axis relative to the source coordinate.
PatternElement
Pattern element types for specifying connectivity rules per axis.

Functions§

find_destination_coordinates
Generate destination coordinates from pattern matching.
find_source_coordinates
Find source coordinates that match a pattern. Directional/relative patterns are treated as wildcard on source side since they require a specific source coordinate to resolve against.
match_pattern_element
Match a coordinate against a pattern element (point-wise check).
match_patterns_batch
Batch process pattern matching for multiple patterns.

Type Aliases§

Pattern3D
3D pattern (x, y, z)