pub enum Representation {
ExtrudedAreaSolid {
profile: Vec<[f64; 2]>,
direction: [f64; 3],
depth: f64,
},
TriangulatedFaceSet {
vertices: Vec<[f64; 3]>,
faces: Vec<[u32; 3]>,
},
}Expand description
The geometry of one element, in its own local coordinate system.
Variants§
ExtrudedAreaSolid
A closed profile swept along a direction.
Covers walls, slabs, columns, beams, openings, ducts, and pipes — the large majority of real building elements.
Fields
TriangulatedFaceSet
Explicit triangles, for geometry no recipe can express.
Implementations§
Source§impl Representation
impl Representation
Sourcepub fn extrusion(
profile: Vec<[f64; 2]>,
direction: [f64; 3],
depth: f64,
) -> Self
pub fn extrusion( profile: Vec<[f64; 2]>, direction: [f64; 3], depth: f64, ) -> Self
Build a swept solid, normalising a negative depth into the direction.
Sourcepub fn is_native_parametric(&self) -> bool
pub fn is_native_parametric(&self) -> bool
Whether this survives export as editable parametric geometry.
Sourcepub fn ifc_representation_type(&self) -> &'static str
pub fn ifc_representation_type(&self) -> &'static str
The IfcShapeRepresentation.RepresentationType this maps to.
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
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 Representation
impl Debug for Representation
Source§impl<'de> Deserialize<'de> for Representation
impl<'de> Deserialize<'de> for Representation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Representation
impl PartialEq for Representation
Source§fn eq(&self, other: &Representation) -> bool
fn eq(&self, other: &Representation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Representation
impl Serialize for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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