SegmentNode
A scene-graph leaf that is a Segment: the segment's geometry carrying the concrete style it renders with, plus optional tags.
Construction rebuilds the segment from segment's endpoints — the given endpoint instances are kept by reference, and rebuilding them into a segment reproduces the geometry exactly for any finite segment. Everything a Segment offers is inherited, and every operation typed against Segment accepts the leaf as-is — the shape-preserving operations, canonical included, return through copy and come back as the leaf, style and tags riding along; everything else returns plain shapes.
Parameters
The geometry to decorate; its endpoints are kept by reference.
The concrete paint; the segment default when omitted.
Free-form tokens riding the leaf; empty by default.
Throws
when segment's endpoints rebuild no dipole — reachable only for a segment derived from an at-infinity dipole, whose endpoints degenerate.
Constructors
Builds the leaf around segment's endpoints.
Properties
Functions
Returns a SegmentNode around segment, carrying this leaf's style and tags.