Segment
Package: Libraries.Fabrication.Slicing · Inherits from: Libraries.Language.Object
The Segment class is one piece of a slice outline: the line where a single triangle of the mesh crosses a slice plane. MeshSlicer makes them and ContourGenerator chains them into loops. Each end lies on a triangle edge, recorded by the edge's two vertex ids (lower id first) so that the neighbouring triangle's segment, which shares that edge, can be found exactly. Segments run so the solid is on the left.
Variables
number x0integer aHigh: The mesh edge the segment ends on.integer planeIndex: The slice plane this segment lies on.integer bLow: The mesh edge the segment ends on.number y0integer bHigh: The mesh edge the segment starts on (its two vertex ids, lower first).number x1number y1integer aLow: The mesh edge the segment starts on (its two vertex ids, lower first).