pub struct Placement3d {
pub page: usize,
pub id: String,
pub view: String,
pub centre_mm: [f64; 2],
pub half_mm: [f64; 2],
pub scale: f64,
}Expand description
A placement drawn live: a 3D box over the placement’s drawing, opening on the placement’s own camera at the placement’s own scale, so activating it changes nothing until the reader turns the model.
Fields§
§page: usizeThe sheet’s index among the file’s pages.
id: StringThe placement id (SV2).
view: StringThe saved view it places (VIEW1).
centre_mm: [f64; 2]Sheet millimetres from the top-left: the camera target’s point, and the box’s half extents about it.
half_mm: [f64; 2]§scale: f64Paper millimetres per model unit.
Trait Implementations§
Source§impl Clone for Placement3d
impl Clone for Placement3d
Source§impl Debug for Placement3d
impl Debug for Placement3d
Source§impl PartialEq for Placement3d
impl PartialEq for Placement3d
impl StructuralPartialEq for Placement3d
Auto Trait Implementations§
impl Freeze for Placement3d
impl RefUnwindSafe for Placement3d
impl Send for Placement3d
impl Sync for Placement3d
impl Unpin for Placement3d
impl UnsafeUnpin for Placement3d
impl UnwindSafe for Placement3d
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more