Skip to main content

Crate geometry_io_svg

Crate geometry_io_svg 

Source
Expand description

SVG output for Cartesian geometries โ€” a debugging convenience.

Mirrors boost/geometry/io/svg/svg_mapper.hpp. Cartesian only: an SvgMapper accumulates geometries, tracks their combined bounding box, and emits a self-contained <svg> document mapping world coordinates to a fixed pixel canvas (y flipped, since SVG y grows downward).

Structsยง

SvgMapper
Accumulates Cartesian geometries and emits a self-contained SVG document mapping their combined world-coordinate bounding box onto a fixed pixel canvas.