#[non_exhaustive]pub struct HatchLine {
pub angle_rad: f64,
pub spacing: f64,
pub shift: f64,
pub origin: [f64; 2],
pub pattern_start: Option<[f64; 2]>,
pub dashes: Option<Vec<[f64; 2]>>,
pub colour: Option<[f64; 3]>,
pub width: Option<f64>,
}Expand description
One IfcFillAreaStyleHatching as a family of parallel lines.
The lengths are model measures, or draughting (paper-space) measures when
the owning MaterialFill::model_or_draughting is Some(false); either
way they are scaled by the project length unit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.angle_rad: f64Angle from the hatching x axis, counter-clockwise, in radians.
spacing: f64Perpendicular distance between neighbouring lines, in metres; positive.
shift: f64Offset of each next line along the line direction, in metres; 0 for a length distance.
origin: [f64; 2]PointOfReferenceHatchLine in metres; [0, 0] when absent.
pattern_start: Option<[f64; 2]>PatternStart in metres, when authored.
dashes: Option<Vec<[f64; 2]>>[visible, invisible] lengths in metres; Some(vec![]) is the
'continuous' font and None states no font.
colour: Option<[f64; 3]>The line colour, when stated.
width: Option<f64>The line width in metres, when stated.
Trait Implementations§
impl StructuralPartialEq for HatchLine
Auto Trait Implementations§
impl Freeze for HatchLine
impl RefUnwindSafe for HatchLine
impl Send for HatchLine
impl Sync for HatchLine
impl Unpin for HatchLine
impl UnsafeUnpin for HatchLine
impl UnwindSafe for HatchLine
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