Skip to main content

RawSurf

Struct RawSurf 

Source
pub struct RawSurf {
Show 45 fields pub n: i64, pub typ: Option<String>, pub coat: Option<String>, pub glas: Option<String>, pub model_glass: Option<(f64, f64, f64)>, pub glas_pickup: Option<usize>, pub curv: Option<f64>, pub curv_pickup: Option<(usize, f64, Option<Kind>)>, pub coni: Option<f64>, pub disz: Option<f64>, pub tced: Option<f64>, pub diam: Option<f64>, pub diam_mode: Option<u8>, pub diam_fixed: bool, pub mema: Option<f64>, pub oema: f64, pub comment: String, pub parm: BTreeMap<i64, f64>, pub ppar: BTreeMap<i64, (usize, f64, f64, Option<Kind>)>, pub pzup: Option<(usize, f64, f64, Option<Kind>)>, pub tsolve: Option<(SolveKind, f64)>, pub csolve: Option<(SolveKind, f64)>, pub cmacro: Option<String>, pub tmacro: Option<String>, pub kmacro: Option<String>, pub smacro: Option<String>, pub mmacro: Option<String>, pub pmacros: Vec<(u8, String)>, pub pkup: Option<(usize, f64, f64, Option<Kind>)>, pub diam_pickup: Option<(usize, f64, Option<Kind>)>, pub mema_pickup: Option<(usize, f64)>, pub xdat: BTreeMap<i64, f64>, pub gdat: Option<Vec<f64>>, pub garr: Vec<(usize, [f64; 5])>, pub fimp: Option<String>, pub clap: Option<Vec<f64>>, pub sqap: Option<Vec<f64>>, pub elap: Option<Vec<f64>>, pub flap: Option<Vec<f64>>, pub obsc: Option<Vec<f64>>, pub spid: Option<Vec<f64>>, pub obdc: Option<Vec<f64>>, pub scbd: Vec<Vec<String>>, pub stop: bool, pub ignore: bool,
}

Fields§

§n: i64§typ: Option<String>§coat: Option<String>§glas: Option<String>§model_glass: Option<(f64, f64, f64)>

モデルガラス(nd, vd, ΔPgF)

§glas_pickup: Option<usize>

材料のピックアップの元の面(GLAS 名前 2 元の面 …。名前・モデルの値は使わない)

§curv: Option<f64>§curv_pickup: Option<(usize, f64, Option<Kind>)>

曲率のピックアップ(元の面, 倍率, 元の列。None は同じ列)

§coni: Option<f64>§disz: Option<f64>§tced: Option<f64>

面の熱膨張係数(TCED の 1 番目の値)

§diam: Option<f64>§diam_mode: Option<u8>

DIAM の 2 番目の欄(0 自動、1 固定、2 ピックアップ、4 マクロ)

§diam_fixed: bool

半直径を固定(DIAM の 2 番目が 1)

§mema: Option<f64>

固定した機械半径(MEMA の 2 番目が 1 の値。自動は None)

§oema: f64

チップゾーン(OEMA)

§comment: String§parm: BTreeMap<i64, f64>§ppar: BTreeMap<i64, (usize, f64, f64, Option<Kind>)>

ピックアップ(元の面, 倍率, オフセット, 元の列。None は同じ列)

§pzup: Option<(usize, f64, f64, Option<Kind>)>§tsolve: Option<(SolveKind, f64)>

厚さのソルブ(種類, 値)。DISZ の次の行(MAZH・CHZH・EDGE・TOLE・TCOM・TCOC・TPUP)

§csolve: Option<(SolveKind, f64)>

曲率のソルブ(種類, 値)。CURV の 3 番目の欄(2・3・5〜11)

§cmacro: Option<String>

曲率の ZPL マクロのソルブのマクロの名前(CURV c 12 … “名前”)

§tmacro: Option<String>

厚さの ZPL マクロのソルブのマクロの名前(TZPL “名前”)

§kmacro: Option<String>

円錐係数の ZPL マクロのソルブ(KZPL “名前”、OpticStudio 26.1.1 で実測)

§smacro: Option<String>

半直径の ZPL マクロのソルブ(DIAM 値 4 0 0 1 “名前”、OpticStudio 26.1.1 で実測)

§mmacro: Option<String>

機械半径の ZPL マクロのソルブ(MEMA 値 3 0 0 1 “名前”)

§pmacros: Vec<(u8, String)>

パラメータの ZPL マクロのソルブ(番号, 名前)。PZPL 番号 “名前”

§pkup: Option<(usize, f64, f64, Option<Kind>)>

円錐係数のピックアップ(元の面, 倍率, オフセット(常に 0), 元の列)

§diam_pickup: Option<(usize, f64, Option<Kind>)>

半直径のピックアップ(元の面, 倍率, 元の列)

§mema_pickup: Option<(usize, f64)>

機械半径のピックアップ(元の面, 倍率)。MEMA 値 2 元の面 0 倍率

§xdat: BTreeMap<i64, f64>

拡張データ(番号 → 値)

§gdat: Option<Vec<f64>>

Grid Sag の格子の頭(GDAT nx ny dx dy xdec ydec unit …)と点(GARR 番号 z zx zy zxy nodata)、.DAT の名前(FIMP)

§garr: Vec<(usize, [f64; 5])>§fimp: Option<String>§clap: Option<Vec<f64>>§sqap: Option<Vec<f64>>§elap: Option<Vec<f64>>§flap: Option<Vec<f64>>§obsc: Option<Vec<f64>>§spid: Option<Vec<f64>>

スパイダー(SPID 腕の幅 腕の本数 開口のピックアップの元の面)

§obdc: Option<Vec<f64>>§scbd: Vec<Vec<String>>§stop: bool§ignore: bool

Trait Implementations§

Source§

impl Clone for RawSurf

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RawSurf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RawSurf

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.