Table of Contents

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

contours IReadOnlyList<PathTesselator.ClosedContour>
polygons List<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

IReadOnlyList<PathTesselator.ClosedContour>

Polygons

Gets the final list of filled triangle polygons that represent the tessellated shape.

public List<Polygon> Polygons { get; }

Property Value

List<Polygon>

Methods

Fill(Path2D, FillRule)

public static PathTesselator Fill(Path2D path, FillRule fillRule)

Parameters

path Path2D
fillRule FillRule

Returns

PathTesselator

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

path Path2D

The vector path to tessellate.

fillRule FillRule

The fill rule (EvenOdd or NonZero) to apply during sweep.

flatness NFloat

The curve flattening tolerance. Smaller values yield more segments.

Returns

PathTesselator

A PathTesselator instance containing all stages of the tessellation pipeline.