#[non_exhaustive]pub struct PlaneSection {
pub frame: Frame3,
pub chains: Vec<SectionChain>,
pub regions: Vec<InPlaneRegion>,
pub cut_regions: Option<Vec<CutRegion>>,
pub evidence: PlaneSectionEvidence,
}Expand description
Cut chains and in-plane regions plus evidence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frame: Frame3Right-handed orthonormal mapping from local (x,y,0) to model space.
chains: Vec<SectionChain>Transversal cut chains. Empty means no crossing.
regions: Vec<InPlaneRegion>Regions of faces lying in the plane.
cut_regions: Option<Vec<CutRegion>>Closed regions of the cut; None when none were requested.
evidence: PlaneSectionEvidenceSource and output counts.
Implementations§
Source§impl PlaneSection
impl PlaneSection
Sourcepub fn new(
frame: Frame3,
chains: Vec<SectionChain>,
regions: Vec<InPlaneRegion>,
evidence: PlaneSectionEvidence,
) -> Self
pub fn new( frame: Frame3, chains: Vec<SectionChain>, regions: Vec<InPlaneRegion>, evidence: PlaneSectionEvidence, ) -> Self
Construct a provider result. Registries validate it before returning it.
Sourcepub fn with_cut_regions(self, cut_regions: Vec<CutRegion>) -> Self
pub fn with_cut_regions(self, cut_regions: Vec<CutRegion>) -> Self
Attach the cut regions of a request that asked for them.
Trait Implementations§
Source§impl Clone for PlaneSection
impl Clone for PlaneSection
Source§fn clone(&self) -> PlaneSection
fn clone(&self) -> PlaneSection
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 PlaneSection
impl Debug for PlaneSection
Source§impl PartialEq for PlaneSection
impl PartialEq for PlaneSection
impl StructuralPartialEq for PlaneSection
Auto Trait Implementations§
impl Freeze for PlaneSection
impl RefUnwindSafe for PlaneSection
impl Send for PlaneSection
impl Sync for PlaneSection
impl Unpin for PlaneSection
impl UnsafeUnpin for PlaneSection
impl UnwindSafe for PlaneSection
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