pub enum SolveKind {
Show 20 variants
MarginalHeight {
height: f64,
},
MarginalHeightZone {
height: f64,
zone: f64,
},
ChiefHeight {
height: f64,
},
Opd {
opd: f64,
zone: f64,
},
PupilPosition,
Edge {
thickness: f64,
radius: f64,
},
Position {
other: usize,
length: f64,
},
Compensator {
other: usize,
sum: f64,
},
CenterOfCurvature {
other: usize,
},
MarginalAngle {
angle: f64,
},
ChiefAngle {
angle: f64,
},
MarginalNormal,
ChiefNormal,
Aplanatic,
ElementPower {
power: f64,
},
ConcentricSurface {
other: usize,
},
ConcentricRadius {
other: usize,
},
FNumber {
fnum: f64,
},
MacroCurv {
index: u16,
},
MacroThick {
index: u16,
},
}Expand description
ソルブの種類と、その条件の値(.zmx の書き方は OpticStudio 2026 R1.01 で実測)。other は参照する別の面
Variants§
MarginalHeight
厚さ: 次の面での主波長の近軸マージナル光線の高さ = height(MAZH 高さ 0)
MarginalHeightZone
厚さ: 次の面での実光線(軸上、瞳 (0, zone)、主波長)の高さ = height(MAZH 高さ 帯、帯 ≠ 0)
ChiefHeight
厚さ: 次の面での近軸主光線の高さ = height(CHZH 高さ 0)
Opd
厚さ: 軸上の視野・主波長の実光線(瞳 (0, zone))の像面での OPD [波] = opd(OPDZ OPD 帯)。OPD は
crate::opd::opd(OpticStudio の光線の OPD、OPDC と同じ)
PupilPosition
厚さ: 次の面を近軸の瞳(その空間で近軸主光線が軸を切る位置)に置く(TPUP)
Edge
厚さ: 半径方向の高さ radius(0 は面の半直径)でのコバ厚 = thickness(EDGE コバ厚 r)
Position
厚さ: 面 other から次の面までの距離(厚さの和 Σ t[other..=この面])= length(TOLE s 長さ)。other が後ろなら、 この面から面 other までの距離 Σ t[この面..other] = length
Compensator
厚さ: 面 other の厚さ + この面の厚さ = sum(TCOM s 和)
CenterOfCurvature
厚さ: 次の面を面 other の曲率中心に置く(TCOC s 0。平面は R = 1e10)
MarginalAngle
曲率: 面の後の近軸マージナル光線の傾き = angle(CURV c 2 値)
ChiefAngle
曲率: 面の後の近軸主光線の傾き = angle(CURV c 3 値)
MarginalNormal
曲率: 近軸マージナル光線が面に垂直に入る(CURV c 5)
ChiefNormal
曲率: 近軸主光線が面に垂直に入る(CURV c 6)
Aplanatic
曲率: 近軸マージナル光線で不遊(u′/n′ = u/n、CURV c 7)
ElementPower
曲率: この面を含む玉(後ろがガラスなら次の面と、そうでなければ前の面と)のパワー = power(CURV c 8 値)
ConcentricSurface
曲率: 曲率中心を面 other の頂点に置く(CURV c 9 s)
ConcentricRadius
曲率: 曲率中心を面 other の曲率中心に置く(CURV c 10 s。平面は R = 1e10)
FNumber
曲率: 面の後の近軸マージナル光線の傾き = −1/(2 fnum)(CURV c 11 F)
MacroCurv
曲率: ZPL のマクロ([System::macros] の番号 index)の SOLVERETURN の値(CURV c 12 … “名前”)
MacroThick
厚さ: ZPL のマクロ([System::macros] の番号 index)の SOLVERETURN の値
Implementations§
Source§impl SolveKind
impl SolveKind
Sourcepub fn param_kind(&self) -> Kind
pub fn param_kind(&self) -> Kind
決めるパラメータの種類
Sourcepub fn other_surface(&self) -> Option<usize>
pub fn other_surface(&self) -> Option<usize>
参照する別の面(あれば)
Sourcepub fn with_other_surface(self, s: usize) -> SolveKind
pub fn with_other_surface(self, s: usize) -> SolveKind
参照する別の面を付け替えたもの
Sourcepub fn with_value(self, v: f64) -> SolveKind
pub fn with_value(self, v: f64) -> SolveKind
条件の値を v にしたもの(値のない種類はそのまま)
Trait Implementations§
impl Copy for SolveKind
Source§impl<'de> Deserialize<'de> for SolveKind
impl<'de> Deserialize<'de> for SolveKind
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>,
Source§impl JsonSchema for SolveKind
impl JsonSchema for SolveKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for SolveKind
Auto Trait Implementations§
impl Freeze for SolveKind
impl RefUnwindSafe for SolveKind
impl Send for SolveKind
impl Sync for SolveKind
impl Unpin for SolveKind
impl UnsafeUnpin for SolveKind
impl UnwindSafe for SolveKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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