plugins.contracts.EdgeSet
plugins.contracts.EdgeSet(
polylines,
closed,
patches,
kind,
residual,
vertices,
stats=dict(),
)The feature curves of a scene, as polylines ready to draw.
What the feature_edges kind returns. NumPy throughout, no derivative: these are display segments.
Attributes
| Name | Type | Description |
|---|---|---|
| polylines | tuple[np.ndarray, …] | One (k, 3) array per curve, ordered along it; a closed curve does not repeat its first point. |
| closed | np.ndarray | Per curve, whether it closes on itself, (n,) bool. |
| patches | np.ndarray | Per curve, the two global patch indices whose zero sets meet on it, (n, 2) int32. |
| kind | tuple[str, …] | Per curve, how it was produced ("traced", "sampled"). |
| residual | np.ndarray | Per curve, the largest \|f\| its points carry against its two patches, (n,) float64. |
| vertices | np.ndarray | Per curve, the triple-point indices at its two ends, (n, 2) int32, -1 where an end is free. |
| stats | dict[str, Any] | Counts and timings. stats["mesh"], when present, is the (points, quads) pair of the dual-contour pass the extraction ran, so the public wire layer can reuse it instead of running a second pass. |
Methods
| Name | Description |
|---|---|
| chords | Every curve as consecutive point pairs, shaped (m, 2, 3). |
| from_mapping | Rebuild the set from :meth:to_mapping’s output. |
| to_mapping | The set as a plain mapping (stats excluded). |
chords
plugins.contracts.EdgeSet.chords()Every curve as consecutive point pairs, shaped (m, 2, 3).
from_mapping
plugins.contracts.EdgeSet.from_mapping(data)Rebuild the set from :meth:to_mapping’s output.
to_mapping
plugins.contracts.EdgeSet.to_mapping()The set as a plain mapping (stats excluded).