[−][src]Module lyon_tessellation::basic_shapes
Tessellation routines for simple shapes.
#Overview
This module contains tessellators for specific shapes that can benefit from having a specialized algorithm rather than using the generic algorithm (for performance purposes or in some cases just for convenience).
See also the generic fill and stroke tessellators.
Some of these algorithms approximate the geometry based on a tolerance threshold which sets the maximum allowed distance between the theoretical curve and its approximation.
This tolerance threshold is configured in the FillOptions and StrokeOptions parameters.
More explanation about flattening and tolerance in the lyon_geom crate.
Structs
BorderRadii | The radius of each corner of a rounded rectangle. |
Functions
fill_circle | Tessellate a circle. |
fill_convex_polyline | Tessellate a convex shape that is described by an iterator of points. |
fill_polyline | Tessellate an arbitrary shape that is described by an iterator of points. |
fill_quad | Tessellate a quad. |
fill_rectangle | Tessellate an axis-aligned rectangle. |
fill_rounded_rectangle | Tessellate an axis-aligned rounded rectangle. |
stroke_circle | Tessellate the stroke for a circle. |
stroke_ellipse | Tessellate the stroke for an ellipse. |
stroke_polyline | Tessellate the stroke for a shape that is described by an iterator of points. |
stroke_quad | Tessellate the stroke for a quad. |
stroke_rectangle | Tessellate the stroke for an axis-aligned rectangle. |
stroke_rounded_rectangle | Tessellate the stroke for an axis-aligned rounded rectangle. |
stroke_triangle | Tessellate the stroke for a triangle. |