Skip to main content

Module render

Module render 

Source
Expand description

Headless preview images of point clouds and meshes, drawn on the CPU.

Made for checking work, including by AI agents that can read images: the object is framed automatically and drawn from a few fixed angles. Mesh faces seen from the front are blue-grey and faces seen from behind are orange, so holes (you see the inside) and flipped faces stand out. No GPU or window is needed.

Structs§

Image
An RGB image, row by row.
RenderOptions
Options for render_grid.

Enums§

Drawable
Something to draw.
UpAxis
Which axis points up in the data.
View
Direction the camera looks from.

Functions§

png_bytes
Write image as PNG bytes in memory.
render_grid
Draw each item as one row and each view as one column, all at the same scale, so before/after pairs compare directly.
write_png
Encode image as a PNG file.