Class PathTesselator
- Namespace
- Xui.Runtime.Software.Tessellate
- Assembly
- Xui.Runtime.Software.dll
Represents a full tessellation pipeline result, including intermediate geometric representations. Used for visual debugging, documentation, and rendering filled polygons from vector paths.
public class PathTesselator
- Inheritance
-
PathTesselator
- Inherited Members
Constructors
PathTesselator(IReadOnlyList<ClosedContour>, List<Polygon>)
public PathTesselator(IReadOnlyList<PathTesselator.ClosedContour> contours, List<Polygon> polygons)
Parameters
contoursIReadOnlyList<PathTesselator.ClosedContour>polygonsList<Polygon>
Properties
Contours
Gets the list of closed contours reconstructed from the segments. Each contour represents a loop used in fill evaluation.
public IReadOnlyList<PathTesselator.ClosedContour> Contours { get; }
Property Value
Polygons
Gets the final list of filled triangle polygons that represent the tessellated shape.
public List<Polygon> Polygons { get; }
Property Value
Methods
Fill(Path2D, FillRule)
public static PathTesselator Fill(Path2D path, FillRule fillRule)
Parameters
Returns
Fill(Path2D, FillRule, NFloat)
Performs full tessellation of a vector path into filled triangle polygons using a specified fill rule. Intermediate data including segments, contours, and trapezoids is retained for debugging or visualization.
public static PathTesselator Fill(Path2D path, FillRule fillRule, NFloat flatness)
Parameters
pathPath2DThe vector path to tessellate.
fillRuleFillRuleThe fill rule (EvenOdd or NonZero) to apply during sweep.
flatnessNFloatThe curve flattening tolerance. Smaller values yield more segments.
Returns
- PathTesselator
A PathTesselator instance containing all stages of the tessellation pipeline.