Method Tessellate
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Tessellate(ITessellationSink, in Matrix3x2Float?, float?)
Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance.
void Tessellate(ITessellationSink tessellationSink, in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)
Parameters
tessellationSink
ITessellationSinkThe ITessellationSink to which the tesselation is appended to.
worldTransform
Matrix3x2Float?The transform to apply to this geometry, or null for no transform.
flatteningTolerance
float?The maximum error allowed when constructing a polygonal approximation of the geometry, or null to use FlatteningTolerance.Default. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.