pub struct Thickness {
pub method: Method,
pub facing_limit: f64,
pub max: f64,
pub tol: Tolerances,
}Expand description
How thickness and thickness_of_shape measure.
Fields§
§method: MethodRays or spheres.
facing_limit: f64The angle, in radians in [0, π/2], from edge-on to the ray within
which a surface is passed over. Zero passes over only a surface
exactly edge-on.
max: f64The thickest a wall may read; a point whose wall is thicker answers
None. May be infinite.
tol: TolerancesThe tolerances: on a mesh, the triangles within their confusion distance of a point are its own; on a shape, the precision faces are met and projected to.
Implementations§
Source§impl Thickness
impl Thickness
Sourcepub fn check(&self) -> OgeomResult<()>
pub fn check(&self) -> OgeomResult<()>
The options checked: max not negative or undefined, the facing
limit in [0, π/2], and for rays at least one ray and a cone in
[0, π/2).
§Errors
OgeomError::Domain for any of
them out of its range.
Trait Implementations§
impl Copy for Thickness
impl StructuralPartialEq for Thickness
Auto Trait Implementations§
impl Freeze for Thickness
impl RefUnwindSafe for Thickness
impl Send for Thickness
impl Sync for Thickness
impl Unpin for Thickness
impl UnsafeUnpin for Thickness
impl UnwindSafe for Thickness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.