#[non_exhaustive]pub struct LayerSetReference {
pub product: EntityId,
pub direction: LayerSetDirection,
pub normal: [f64; 3],
pub distance: f64,
pub source: EntityId,
/* private fields */
}Expand description
Where a material layer set usage measures its layers from, in the product’s object coordinate system.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.product: EntityIdThe product the reference was read from.
direction: LayerSetDirectionThe usage’s layer direction.
normal: [f64; 3]Unit normal of every layer boundary plane, object frame: +y for AXIS2,
the extrusion Position’s z for AXIS3.
distance: f64Signed distance, metres, along normal from the product origin to the
reference line (AXIS2) or plane (AXIS3).
source: EntityIdThe Axis IfcPolyline (AXIS2) or the IfcExtrudedAreaSolid (AXIS3)
the reference was read from.
Implementations§
Source§impl LayerSetReference
impl LayerSetReference
Sourcepub fn boundaries(
&self,
units: &UnitScale,
sense: DirectionSense,
offset: f64,
thicknesses: &[f64],
) -> GeometryResult<LayerBoundaries>
pub fn boundaries( &self, units: &UnitScale, sense: DirectionSense, offset: f64, thicknesses: &[f64], ) -> GeometryResult<LayerBoundaries>
The boundary planes of a stack of layers.
offset is OffsetFromReferenceLine and thicknesses the
LayerThickness values in set order, both in project length units.
POSITIVE builds from the offset reference toward +normal;
NEGATIVE toward -normal, and the result is reported ascending, so
order lists the layers last to first.
Trait Implementations§
Source§impl Clone for LayerSetReference
impl Clone for LayerSetReference
Source§fn clone(&self) -> LayerSetReference
fn clone(&self) -> LayerSetReference
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more