Module tessellator

Source
Expand description

Converts graphics primitives into textured triangles.

This module converts lines, circles, text and more represented by Shape into textured triangles represented by Mesh.

Modulesยง

path
Helpers for constructing paths
precomputed_vertices ๐Ÿ”’

Structsยง

Path
A connected line (without thickness or gaps) which can be tessellated to either to a stroke (with thickness) or a filled convex area. Used as a scratch-pad during tessellation.
PathPoint ๐Ÿ”’
TessellationOptions
Tessellation quality options
Tessellator
Converts Shapes into triangles (Mesh).

Enumsยง

PathType

Functionsยง

cw_signed_area ๐Ÿ”’
fill_closed_path ๐Ÿ”’
Tessellate the given convex area into a polygon.
fill_closed_path_with_uv ๐Ÿ”’
Like fill_closed_path but with texturing.
mul_color ๐Ÿ”’
stroke_and_fill_path ๐Ÿ”’
Tessellate the given path as a stroke with thickness, with optional fill color.
stroke_path ๐Ÿ”’
Tessellate the given path as a stroke with thickness.