scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
Loading...
Searching...
No Matches
normals.h
Go to the documentation of this file.
1
8
9#pragma once
10
11#include <scimesh/mesh.h>
12#include <scimesh/math_utils.h>
13
14namespace scimesh {
15
42void compute_vertex_normals(const Mesh &mesh, std::vector<Vec3> &normals);
43
44} // namespace scimesh
Low-level math utilities for the rendering pipeline.
The Mesh — the central data structure for 3D geometry in scimesh.
void compute_vertex_normals(const Mesh &mesh, std::vector< Vec3 > &normals)
Compute per-vertex normals by averaging adjacent face normals.
Definition normals.cpp:5