Skip to main content

PmiGeometry

Enum PmiGeometry 

Source
pub enum PmiGeometry {
Show 13 variants None, Linear { a: [f64; 3], b: [f64; 3], component: Option<char>, }, Radial { center: [f64; 3], axis: [f64; 3], radius: f64, diameter: bool, sphere: bool, }, Angular { vertex: [f64; 3], dir_a: [f64; 3], dir_b: [f64; 3], axis: [f64; 3], degrees: f64, }, Leader { targets: Vec<[f64; 3]>, dot: bool, balloon: bool, anchor: Option<BalloonAnchor>, }, Note { position: [f64; 3], }, Hole { anchor: [f64; 3], normal: [f64; 3], }, Hide { solids: Vec<String>, }, Explode { solids: Vec<String>, translate: [f64; 3], rotate_deg: [f64; 3], scale: [f64; 3], center: [f64; 3], trace: bool, }, Datum { anchor: [f64; 3], normal: [f64; 3], letter: String, }, Fcf { anchor: [f64; 3], normal: [f64; 3], frame: FcfFrame, }, CenterMark { marks: Vec<CenterCircle>, extension: f64, }, CenterLine { a: [f64; 3], b: [f64; 3], },
}
Expand description

The analytic geometry an annotation resolved to — what the presentation (layout) and the STEP semantic export are built from.

Variants§

§

None

§

Linear

Measured from a to b (world). component names the X/Y/Z axis when the dimension is an aligned component, else None.

Fields

§a: [f64; 3]
§b: [f64; 3]
§component: Option<char>
§

Radial

Fields

§center: [f64; 3]
§axis: [f64; 3]
§radius: f64
§diameter: bool
§sphere: bool
§

Angular

The arc sweeps degrees from dir_a about axis (right-handed) at vertex.

Fields

§vertex: [f64; 3]
§dir_a: [f64; 3]
§dir_b: [f64; 3]
§axis: [f64; 3]
§degrees: f64
§

Leader

Fields

§targets: Vec<[f64; 3]>
§dot: bool
§balloon: bool
§anchor: Option<BalloonAnchor>

A balloon’s head derivation recipe (None on a plain leader): the viewport re-derives targets[0] from a dragged bubble with it.

§

Note

Fields

§position: [f64; 3]
§

Hole

Fields

§anchor: [f64; 3]
§normal: [f64; 3]
§

Hide

Display-only: keep solids out of the view while it is active. Draws nothing (no chip, no text, no line).

Fields

§solids: Vec<String>
§

Explode

Display-only: pose solids by the delta while the view is active.

Fields

§solids: Vec<String>
§translate: [f64; 3]
§rotate_deg: [f64; 3]
§scale: [f64; 3]
§center: [f64; 3]

The rotation / scale pivot: the targets’ aggregate bbox center.

§trace: bool
§

Datum

Fields

§anchor: [f64; 3]
§normal: [f64; 3]
§letter: String
§

Fcf

Fields

§anchor: [f64; 3]
§normal: [f64; 3]
§frame: FcfFrame
§

CenterMark

Centre crosses on round features, the dashes reaching extension (model units) past each circle.

Fields

§extension: f64
§

CenterLine

A chain line from a to b (its extension already included).

Fields

§a: [f64; 3]
§b: [f64; 3]

Trait Implementations§

Source§

impl Clone for PmiGeometry

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 PmiGeometry

Source§

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

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

impl<'de> Deserialize<'de> for PmiGeometry

Source§

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 PartialEq for PmiGeometry

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for PmiGeometry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PmiGeometry

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more