pub struct ThicknessField {
pub name: String,
pub on: MeshId,
pub max_distance: f64,
}Expand description
A per-vertex wall-thickness field to register with
Scene::add_thickness_field.
The value at a vertex is the distance to the opposite surface along the
vertex’s smooth normal (the nearest ray hit in either normal direction),
in world units: the placement’s scale is applied, so scaled meshes read
scaled. Hits beyond max_distance read +∞; vertices whose rays escape
in both directions (open sheets, the rims of open meshes), dead slots and
alive vertices no alive triangle uses read NaN. Like a distance 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.
max_distance: f64The largest thickness kept (inclusive); thicker vertices hold +∞.
Zero or greater, may be infinite.
Trait Implementations§
Source§impl Clone for ThicknessField
impl Clone for ThicknessField
Source§fn clone(&self) -> ThicknessField
fn clone(&self) -> ThicknessField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more