Skip to main content

Module geom

Module geom 

Source
Expand description

Geometry for halos and ink (Shapely stand-in).

Capsule/disk helpers always available. Full multipolygon buffer / boolean ops live behind the geom feature (i_overlay) — enable for Python so Shapely can leave the runtime dependency set.

Structs§

Shape
Multipolygon ink / halo geometry.

Functions§

capsule_halo_path_d
White knockout path for a stroked capsule (ink radius + grow distance).
capsule_polygon
Filled capsule: segment (x1,y1)–(x2,y2) thickened by radius, round caps.
circle_polygon
Approximate a circle as a closed polygon (Shapely quad_segs style).
disk_halo_path_d
Disk ink halo (point buffer then grow → single circle at r + grow).
polygon_to_svg_d
Closed polygon as SVG path d (absolute M/L/Z).