meshing.exact_feature_mask
meshing.exact_feature_mask(leaf_ids, patch_ids, adjacency)
Mark adjacencies whose endpoint signatures differ.
A mesh edge whose two vertices carry different signatures straddles an exact feature: either a CSG seam (leaf change) or a primitive edge (patch change within one leaf). Face interiors never trigger — both endpoints own the same smooth patch there.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| leaf_ids | np.ndarray | Per-vertex leaf ids, shaped (vertex_count,). |
required |
| patch_ids | np.ndarray | Per-vertex patch ids, shaped (vertex_count,). |
required |
| adjacency | np.ndarray | Vertex-index pairs shaped (edge_count, 2) (e.g. the quad edges of a dual-contour mesh). |
required |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | Boolean mask shaped (edge_count,): True where the signature |
|
| np.ndarray | changes across the edge. |