geom2d.debug

Debug SVG output support for geometry package.

geom2d.debug.debug(*args) None

Just write a message to stderr.

Dumb but useful when debugging in Inkscape.

geom2d.debug.draw_arc(arc: tuple[Sequence[float], Sequence[float], float, float, Sequence[float]], color: str = '#f00', width: str | float = '1px', opacity: float = 1, verbose: bool = False) None

Draw an SVG arc for debugging/testing.

geom2d.debug.draw_circle(center: Sequence[float], radius: float, color: str = '#f00', width: str | float = '1px', opacity: float = 1, verbose: bool = False) None

Draw an SVG circle.

geom2d.debug.draw_line(line: Sequence[Sequence[float]], color: str = '#f00', width: str | float = '1px', opacity: float = 1, verbose: bool = False) None

Draw an SVG line segment for debugging/testing.

geom2d.debug.draw_point(point: Sequence[float], color: str = '#f00', width: str | float = '4px', opacity: float = 1) None

Draw a dot. Useful for debugging and testing.

geom2d.debug.draw_poly(vertices: Sequence[Sequence[float]], color: str = '#f00', width: str | float = '1px', opacity: float = 1, verbose: bool = False, close_poly: bool = True) None

Draw an SVG polygon.

geom2d.debug.linestyle(color: str = '#f00', width: str | float = '1px', opacity: float = 1.0) str

Create an SVG line style using the specified attributes.

geom2d.debug.set_svg_context(context: SVGContext) None

Initialize this module with an SVGContext.

The SVGContext will be used for debug output by draw…() methods.