pub struct Member<'m, 's> { /* private fields */ }Expand description
Borrowed projection of an IfcStructuralMember (curve or surface, constant or varying).
Implementations§
Source§impl Member<'_, '_>
impl Member<'_, '_>
Sourcepub fn is_varying(&self) -> bool
pub fn is_varying(&self) -> bool
Whether the entity is one of the varying-member marker subtypes.
Sourcepub fn subsequent_thicknesses(&self) -> StructuralResult<Option<Vec<f64>>>
pub fn subsequent_thicknesses(&self) -> StructuralResult<Option<Vec<f64>>>
IFC2X3 surface-varying thicknesses after the inherited first thickness.
IFC4 and IFC4X3 retain the varying subtype as a marker without these
attributes, so this returns None for those schemas and for curve members.
Sourcepub fn varying_thickness_location(&self) -> StructuralResult<Option<EntityId>>
pub fn varying_thickness_location(&self) -> StructuralResult<Option<EntityId>>
IFC2X3 shape aspect locating the varying surface-member thicknesses.
Returns None when the selected schema does not declare this attribute.
Source§impl<'m, 's> Member<'m, 's>
impl<'m, 's> Member<'m, 's>
Sourcepub fn kind(&self) -> MemberKind
pub fn kind(&self) -> MemberKind
Which curve/surface, constant/varying subtype this member carries.
Sourcepub fn name(&self) -> StructuralResult<Option<&'m str>>
pub fn name(&self) -> StructuralResult<Option<&'m str>>
Name, inherited from IfcRoot. Legally absent.
Sourcepub fn predefined_type(&self) -> StructuralResult<&'m str>
pub fn predefined_type(&self) -> StructuralResult<&'m str>
PredefinedType, always mandatory on IfcStructuralMember.
Fails with StructuralError::SemanticViolation if the value is
USERDEFINED but ObjectType is unset (IFC4/IFC4X3 only; IFC2X3
declares no PredefinedType semantic constraint here).
Sourcepub fn axis(&self) -> StructuralResult<Option<EntityId>>
pub fn axis(&self) -> StructuralResult<Option<EntityId>>
Axis, the local member axis direction. Only meaningful for curve
members; returns None for surface members or when the attribute is unset.
Sourcepub fn thickness(&self) -> StructuralResult<Option<f64>>
pub fn thickness(&self) -> StructuralResult<Option<f64>>
Thickness, the constant surface thickness. Only meaningful for
surface members; returns None for curve members or when the
attribute is unset. Fails with StructuralError::SemanticViolation
if present but not a positive finite value.