csharp
public readonly record struct ContourOne contour of a flattened path: a run of points, and whether it joins back up.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Closed survives flattening, and it has to. A fill closes every contour regardless — an open one leaks along whatever the scanline crosses next — so for a fill the flag is redundant. A stroke is the opposite: an open contour gets a cap at each end and a closed one gets a join at the seam, and the two look nothing alike. Flattening a path into bare point runs would throw away the only thing that decides which.
Fields and properties (3)
public int FirstWhere its points start.
public int CountHow many points it has.
public bool ClosedWhether the last point joins back to the first.
Methods (1)
public Contour(int First, int Count, bool Closed)One contour of a flattened path: a run of points, and whether it joins back up.
Used by (5)
- FlatPathVixen.Ui.Tests
- PathFlattenerVixen.Ui
- PathTessellatorVixen.Ui
- PathTessellatorTestsVixen.Ui.Tests
- UiGeometryBuilderVixen.Ui