pub struct ThickSpec {
pub surf: usize,
pub to: Option<usize>,
pub target: Option<f64>,
pub edge: Option<bool>,
pub zone: Option<f64>,
pub clear: Option<bool>,
pub axis: Option<EdgeAxisName>,
pub each: Option<EachName>,
}Expand description
thickness の項(中心の厚み。to を書くと surf から to までの和)
Fields§
§surf: usize面の番号(物体面 0)
to: Option<usize>和をとる最後の面(既定 surf)
target: Option<f64>目標 [レンズ単位]
edge: Option<bool>縁の厚み(面とその次の面の矢高を、それぞれの面の形が終わる半径(クリア半径 + チップゾーン)× zone の高さで測る)
zone: Option<f64>縁の厚みを測る高さ(面の形が終わる半径に対する割合、既定 1)
clear: Option<bool>縁の厚みの矢高をクリア半径 × zone で測る(チップゾーンを入れない。既定 false)
axis: Option<EdgeAxisName>縁の厚みを測る向き(面の局所座標の “+y”(既定)・“+x”・“-y”・“-x”。OpticStudio の ETVA の Code 0〜3)
each: Option<EachName>和でなく面ごとに min・max と比べ、はみ出しを足す(その媒質の面だけ。OpticStudio の MNCT・MNCA・MNEG など)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ThickSpec
impl<'de> Deserialize<'de> for ThickSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ThickSpec
impl JsonSchema for ThickSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ThickSpec
impl RefUnwindSafe for ThickSpec
impl Send for ThickSpec
impl Sync for ThickSpec
impl Unpin for ThickSpec
impl UnsafeUnpin for ThickSpec
impl UnwindSafe for ThickSpec
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,
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> ⓘ
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