Module lyon::tessellation::basic_shapes [−][src]
Tessellation routines for simple shapes.
#Overview
This module contains tessellators for specific shapes that can benefit from having a specialised 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 discribed by an iterator of points. |
fill_ellipse |
Tessellate an ellipse. |
fill_polyline |
Tessellate an arbitray shape that is discribed 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. |
fill_triangle |
Tessellate a triangle. |
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 discribed by an iterator of points. |
stroke_quad |
Tessellate the stroke for a quad. |
stroke_rectangle |
Tessellate the stroke for an axis-aligne rectangle. |
stroke_rounded_rectangle |
Tessellate the stroke for an axis-aligned rounded rectangle. |
stroke_triangle |
Tessellate the stroke for a triangle. |