pub struct FaceContribution {
pub area: f64,
pub volume: f64,
pub volume_moment_x: f64,
pub volume_moment_y: f64,
pub volume_moment_z: f64,
pub centroid_x: f64,
pub centroid_y: f64,
pub centroid_z: f64,
}Expand description
Contribution of a single face to global geometric properties.
Fields§
§area: f64Face area.
volume: f64Volume contribution: (1/3) integral of P dot N dA.
volume_moment_x: f64Volume-weighted x-moment: (1/2) integral of x^2 * n_x dA (divergence theorem).
volume_moment_y: f64Volume-weighted y-moment: (1/2) integral of y^2 * n_y dA (divergence theorem).
volume_moment_z: f64Volume-weighted z-moment: (1/2) integral of z^2 * n_z dA (divergence theorem).
centroid_x: f64Area-weighted centroid x-component (for surface centroid, not solid CoM).
centroid_y: f64Area-weighted centroid y-component (for surface centroid, not solid CoM).
centroid_z: f64Area-weighted centroid z-component (for surface centroid, not solid CoM).
Trait Implementations§
Source§impl Clone for FaceContribution
impl Clone for FaceContribution
Source§fn clone(&self) -> FaceContribution
fn clone(&self) -> FaceContribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FaceContribution
impl RefUnwindSafe for FaceContribution
impl Send for FaceContribution
impl Sync for FaceContribution
impl Unpin for FaceContribution
impl UnsafeUnpin for FaceContribution
impl UnwindSafe for FaceContribution
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