122 const std::vector<Color> &colors,
150 const std::vector<Color> &colors,
185 const std::vector<Vec3> &to,
186 const std::vector<Color> &colors,
199 void render_pipeline(
const std::vector<SceneNodeRef> &nodes,
200 const std::vector<LineNodeRef> &line_nodes,
201 const std::vector<TextNodeRef> &text_nodes,
Camera definition and helper functions for view setup.
The main rendering engine.
Image render_mesh(const Mesh &mesh, const Camera &camera, const RenderOptions &options)
Render a single mesh to an image.
Image render_lines_raw(const std::vector< Vec3 > &from, const std::vector< Vec3 > &to, const std::vector< Color > &colors, float width, const Camera &camera, const RenderOptions &options)
Render line segments with a screen-space width to an image.
Image render_scene(const Scene &scene, const Camera &camera, const RenderOptions &options)
Render a scene (collection of meshes) to an image.
Image render_points_raw(const std::vector< Vec3 > &positions, const std::vector< Color > &colors, float radius, const Camera &camera, const RenderOptions &options)
Render a point cloud (spheres at each position) to an image.
Image render_triangles_raw(const std::vector< Vec3 > &positions, const std::vector< Color > &colors, const Camera &camera, const RenderOptions &options)
Render raw triangles (no Mesh wrapper) to an image.
The Image — an RGBA pixel buffer with compositing and I/O operations.
The Mesh — the central data structure for 3D geometry in scimesh.
RenderOptions — all settings that control how meshes are drawn.
The Scene — a collection of meshes rendered together.
A virtual camera that defines the viewpoint for rendering.
A 3D triangle mesh using an indexed face set representation.
All settings that control rendering output.
A collection of Mesh objects to be rendered together.
int x
Left edge of the bitmap, in image pixels.