pub enum ShapeQ {
Tsag {
p: [f64; 3],
tilt: [f64; 3],
flat: bool,
},
Bfs {
data: BfsData,
rmin: f64,
rmax: f64,
},
}Expand description
面の形の量(TermKind::Shape)。長さはレンズ単位
Variants§
Tsag
面の局所座標の点 p から、x・y・z 軸まわりに tilt [deg] 回した z 軸の向きに面まで測った距離(面が向きの前なら正)。 flat なら面を、クリア半径の外で縁の矢高のまま平らにする(玉の半径がクリア半径より大きい面だけ。OpticStudio の TSAG の Mode 0)
Bfs
半径 rmin から rmax(rmax 0 はクリア半径)の y の向きの断面に当てはめた、削る体積が最小の最適球の量
Trait Implementations§
impl Copy for ShapeQ
impl StructuralPartialEq for ShapeQ
Auto Trait Implementations§
impl Freeze for ShapeQ
impl RefUnwindSafe for ShapeQ
impl Send for ShapeQ
impl Sync for ShapeQ
impl Unpin for ShapeQ
impl UnsafeUnpin for ShapeQ
impl UnwindSafe for ShapeQ
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