Skip to main content

Module vertex_utils

Module vertex_utils 

Source
Expand description

Utility functions for creating common vertex patterns

Functionsยง

create_line
Create vertices for a line from start to end point
create_line_plot
Create vertices for a parametric line plot (1px line segments)
create_line_plot_dashed
Create dashed/dotted line vertices by selectively including segments. Approximation: pattern is applied per original segment index.
create_point_cloud
Create vertices for a point cloud
create_scatter_plot
Create vertices for a scatter plot
create_thick_polyline
Create thick polyline as triangles (used when line width > 1)
create_thick_polyline_dashed
Create dashed/dotted thick polyline by skipping segments in the extruder.
create_thick_polyline_round_caps
Round caps variant: square caps plus approximated semicircle fan at ends
create_thick_polyline_square_caps
Square caps variant: extend endpoints by half width
create_thick_polyline_with_join
Thick polyline with join style
create_triangle
Create vertices for a triangle
extrude_polyline
CPU polyline extrusion for thick lines (butt caps, miter joins simplified) Input: contiguous points. Output: triangle list vertices.
extrude_polyline_with_join
Extrude polyline with join styles at internal vertices.