pub struct CurvatureField {
pub name: String,
pub on: MeshId,
}Expand description
A per-vertex curvature field to register with
Scene::add_curvature_field.
The value at a vertex is its signed mean curvature (the cotangent Laplace
estimate of fast_mesh_fields::curvatures): positive on domes (convex
as seen from the normal side, about 1 / r on a sphere of radius r
with outward normals), negative in bowls and dents, zero on flat spots;
a saddle takes the sign of its dominant bend. Units are 1/world-unit:
the placement’s scale is applied (a mesh scaled by s reads H / s),
so scaled meshes read scaled. Dead slots and alive vertices no alive
triangle uses read NaN. Like a thickness field, the values live in a
derived store channel field:<name> on on and colour through
Scene::set_coloring unchanged.
Fields§
§name: StringThe field’s name, unique among the fields on on.
on: MeshIdThe mesh whose vertices carry the values.
Trait Implementations§
Source§impl Clone for CurvatureField
impl Clone for CurvatureField
Source§fn clone(&self) -> CurvatureField
fn clone(&self) -> CurvatureField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more