pub struct MechShape {
pub name: String,
pub frame: Frame,
pub rings: Vec<[f64; 4]>,
pub square: bool,
pub step: Option<(String, bool)>,
}Expand description
機構部品の形: 部品の座標系(原点・列が軸)と、軸のまわりの輪 [z0, z1, 内側の半径, 外側の半径]
Fields§
§name: String§frame: Frame§rings: Vec<[f64; 4]>§square: bool外側が角(外側の半径は正方形の一辺の半分、辺は局所の x・y 軸に沿う)
step: Option<(String, bool)>詳しい形の STEP のファイルと、裏返して置くか(crate::detail)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MechShape
impl RefUnwindSafe for MechShape
impl Send for MechShape
impl Sync for MechShape
impl Unpin for MechShape
impl UnsafeUnpin for MechShape
impl UnwindSafe for MechShape
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
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