pub struct Region {
pub outline: Vec<[f32; 3]>,
pub holes: Vec<Vec<[f32; 3]>>,
pub color: Rgb,
pub opacity: f32,
pub hatch: Option<f32>,
pub hatch_angle: f32,
pub on_top: bool,
}Expand description
A flat region in world space: an outline and the holes in it, all on
one plane, filled and, with hatch, hatched in lines that far apart.
Fields§
§outline: Vec<[f32; 3]>§holes: Vec<Vec<[f32; 3]>>§color: Rgb§opacity: f32The fill’s; 0 leaves only the hatch.
hatch: Option<f32>mm between hatch lines; none for no hatch.
hatch_angle: f32The hatch lines’ angle in the region’s plane, degrees.
on_top: boolOver everything, whatever is in front of it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
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
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Forget for Region
impl Freeze for Region
impl Move for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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