pub struct Block<'m> { /* private fields */ }Expand description
IfcBlock: an axis-aligned box.
The placement origin is the box corner, and the box extends along
+X, +Y and +Z of Position. It is not centred, so treating it as a
centred box offsets it by half its size in all three axes.
Implementations§
Source§impl<'m> Block<'m>
impl<'m> Block<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity assumed to be of this primitive’s type.
Sourcepub fn base(&self) -> CsgPrimitive3D<'m>
pub fn base(&self) -> CsgPrimitive3D<'m>
The inherited IfcCsgPrimitive3D attributes.
Sourcepub fn x_length(&self) -> GeometryResult<f64>
pub fn x_length(&self) -> GeometryResult<f64>
XLength, extent along the placement’s X axis.
Sourcepub fn y_length(&self) -> GeometryResult<f64>
pub fn y_length(&self) -> GeometryResult<f64>
YLength, extent along the placement’s Y axis.
Sourcepub fn z_length(&self) -> GeometryResult<f64>
pub fn z_length(&self) -> GeometryResult<f64>
ZLength, extent along the placement’s Z axis.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Block<'m>
impl<'m> RefUnwindSafe for Block<'m>
impl<'m> Send for Block<'m>
impl<'m> Sync for Block<'m>
impl<'m> Unpin for Block<'m>
impl<'m> UnsafeUnpin for Block<'m>
impl<'m> UnwindSafe for Block<'m>
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