pub struct SectionResult {
pub contours: Vec<SectionContour>,
pub length: f64,
pub area: f64,
pub fill: Option<Fill>,
pub fill_ok: bool,
}Expand description
A section’s result for one mesh, from
Scene::section.
Fields§
§contours: Vec<SectionContour>The contours, sorted by their first edge key.
length: f64The summed length of every contour.
area: f64The summed signed area of the closed, oriented contours.
fill: Option<Fill>The filled cross-section over the closed contours, when the section
has fill on and the result was computed. Its points are (u, v);
Plane::from_uv of the section plane maps them to the world.
fill_ok: boolWhether the fill looks good (see fast_mesh_query::fill): best
effort, a bad fill can go unreported. true when fill is None.
Trait Implementations§
Source§impl Clone for SectionResult
impl Clone for SectionResult
Source§fn clone(&self) -> SectionResult
fn clone(&self) -> SectionResult
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 moreSource§impl Debug for SectionResult
impl Debug for SectionResult
Source§impl Default for SectionResult
impl Default for SectionResult
Source§impl PartialEq for SectionResult
impl PartialEq for SectionResult
impl StructuralPartialEq for SectionResult
Auto Trait Implementations§
impl Freeze for SectionResult
impl RefUnwindSafe for SectionResult
impl Send for SectionResult
impl Sync for SectionResult
impl Unpin for SectionResult
impl UnsafeUnpin for SectionResult
impl UnwindSafe for SectionResult
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