Expand description
A small software renderer for thumbnails: an isometric view of a
Mesh with a z-buffer, flat shading and dark outlines where the depth
jumps (silhouettes, steps), written as an RGBA PNG with a transparent
background, so it sits on light and dark skins alike.
Pure Rust; the PNG is written with flate2 (zlib stream and CRC-32).
Cost is bounded by the triangle count (checked by Mesh::check) and
the pixel count.
Functions§
- png
- The mesh drawn as a
size×sizePNG, orNonefor point clouds and meshes without area.