simvx.graphics.debug_draw

Immediate-mode debug line drawing.

Usage: from simvx.graphics.debug_draw import DebugDraw

# In your process() callback:
DebugDraw.line((0,0,0), (1,1,1), color=(1,0,0,1))
DebugDraw.box((0,0,0), (1,1,1), color=(0,1,0,1))
DebugDraw.axes((0,0,0), size=2.0)

Lines are rendered after the main 3D pass and cleared each frame.

Module Contents

Classes

DebugDraw

Singleton immediate-mode debug line renderer.

Data

API

simvx.graphics.debug_draw.__all__

[‘DebugDraw’]

simvx.graphics.debug_draw.DEBUG_VERTEX_DTYPE

‘dtype(…)’

class simvx.graphics.debug_draw.DebugDraw

Singleton immediate-mode debug line renderer.

classmethod line(start, end, color=(1.0, 1.0, 1.0, 1.0))

Draw a line from start to end.

classmethod box(center, half_extents, color=(1.0, 1.0, 1.0, 1.0))

Draw a wireframe axis-aligned box.

classmethod sphere(center, radius, color=(1.0, 1.0, 1.0, 1.0), segments=16)

Draw a wireframe sphere (3 circles: XY, XZ, YZ planes).

classmethod ray(origin, direction, length=10.0, color=(1.0, 1.0, 0.0, 1.0))

Draw a ray from origin along direction.

classmethod axes(position=(0, 0, 0), size=1.0)

Draw RGB XYZ axes gizmo at position.

classmethod get_vertex_data() numpy.ndarray | None

Return vertex data as structured numpy array, or None if empty.

classmethod vertex_count() int