pub struct Face {
pub frame: Frame,
pub c: f64,
pub k: f64,
pub asph: Vec<f64>,
pub toroidal: bool,
pub free: Option<Box<Surface>>,
pub cx: f64,
pub semi: f64,
pub surf: usize,
}Expand description
回転対称な面(局所座標で z = sag(r)、半径 semi まで。その外は外径 rim まで平ら)
Fields§
§frame: Frame§c: f64§k: f64§asph: Vec<f64>§toroidal: boolx・y に依る面(トロイダル面: c・k・asph は y の曲線、cx は x の回転の曲率。
Zernike・Grid Sag の面: free に面のデータ)
free: Option<Box<Surface>>Zernike・Grid Sag の面(形は lensbench_core::freeform::sag_xy)
cx: f64§semi: f64§surf: usize面番号
Implementations§
Source§impl Face
impl Face
pub fn to_global(&self, l: V3) -> V3
pub fn axis(&self) -> V3
Sourcepub fn extent(&self, rim: f64, put: &mut impl FnMut(V3))
pub fn extent(&self, rim: f64, put: &mut impl FnMut(V3))
半径 rim までの面の箱を put に渡す。回転対称の面は局所 z が一定の円の重なりなので、半径ごとの円の
箱を式で(中心 ± 半径 × 軸に直交する成分)出す。半径は網(crate::mesh の既定 16 輪)を含む
32 輪と rim。トロイダル・自由曲面は周を細かく取った点で見る
Sourcepub fn is_spherical(&self) -> bool
pub fn is_spherical(&self) -> bool
球面(または平面)か: 円錐係数・非球面係数がない
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Face
impl !UnwindSafe for Face
impl Freeze for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
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