Skip to main content

SectionedSpine

Struct SectionedSpine 

Source
pub struct SectionedSpine<'m> { /* private fields */ }
Expand description

IfcSectionedSpine: cross sections positioned along a composite curve.

§Not a swept area solid

Despite the family resemblance it subtypes IfcGeometricRepresentationItem directly, not IfcSolidModel. Slot 0 is SpineCurve, and there is no inherited SweptArea or Position.

§The pairing invariant

CrossSections and CrossSectionPositions are parallel lists that the schema requires to be the same length. Exporters do get this wrong, and a plain zip silently truncates to the shorter one, producing a solid missing its tail. Self::checked_sections reports the mismatch instead.

Implementations§

Source§

impl<'m> SectionedSpine<'m>

Source

pub fn new(id: EntityId, entity: &'m Entity) -> Self

Wrap an entity assumed to be an IfcSectionedSpine.

Source

pub fn id(&self) -> EntityId

The entity id.

Source

pub fn spine_curve(&self) -> GeometryResult<EntityId>

The IfcCompositeCurve reference forming the spine.

Source

pub fn cross_sections(&self) -> GeometryResult<Vec<EntityId>>

The IfcProfileDef references, in spine order.

Source

pub fn cross_section_positions(&self) -> GeometryResult<Vec<EntityId>>

The IfcAxis2Placement3D references locating each cross section.

Source

pub fn checked_sections(&self) -> GeometryResult<Vec<(EntityId, EntityId)>>

Sections paired with their positions, rejecting a length mismatch.

Trait Implementations§

Source§

impl<'m> Clone for SectionedSpine<'m>

Source§

fn clone(&self) -> SectionedSpine<'m>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'m> Copy for SectionedSpine<'m>

Source§

impl<'m> Debug for SectionedSpine<'m>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'m> Freeze for SectionedSpine<'m>

§

impl<'m> RefUnwindSafe for SectionedSpine<'m>

§

impl<'m> Send for SectionedSpine<'m>

§

impl<'m> Sync for SectionedSpine<'m>

§

impl<'m> Unpin for SectionedSpine<'m>

§

impl<'m> UnsafeUnpin for SectionedSpine<'m>

§

impl<'m> UnwindSafe for SectionedSpine<'m>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.