pub struct ImportedAnnotation {
pub name: String,
pub kind: AnnotationKind,
pub text: String,
pub polylines: Vec<Vec<[f32; 3]>>,
pub anchor: Option<[f32; 3]>,
pub body_index: Option<usize>,
}Expand description
One annotation an imported file carries (a dimension, a tolerance, a datum or a note), with what it draws.
The polylines and the anchor are in document millimetres, placed where the file’s bodies are placed, so an annotation drawn on an assembly’s part sits on that part.
Fields§
§name: StringThe name the file gives it (Linear Size.3, Flatness.1), or the
text it shows where the file names it by that.
kind: AnnotationKind§text: StringWhat a label shows: Ø 35 ±0.2, Flatness 0.2, A.
polylines: Vec<Vec<[f32; 3]>>The drawn geometry: leaders, frames, witness lines and whatever strokes the file draws its text with.
anchor: Option<[f32; 3]>Where the label goes; None for an annotation that draws nothing.
body_index: Option<usize>The body the annotation describes, as an index into
ImportedModel::bodies, where the file says which.
Trait Implementations§
Source§impl Clone for ImportedAnnotation
impl Clone for ImportedAnnotation
Source§impl Debug for ImportedAnnotation
impl Debug for ImportedAnnotation
Source§impl Default for ImportedAnnotation
impl Default for ImportedAnnotation
Source§impl<'de> Deserialize<'de> for ImportedAnnotation
impl<'de> Deserialize<'de> for ImportedAnnotation
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 PartialEq for ImportedAnnotation
impl PartialEq for ImportedAnnotation
Source§impl Serialize for ImportedAnnotation
impl Serialize for ImportedAnnotation
impl StructuralPartialEq for ImportedAnnotation
Auto Trait Implementations§
impl Freeze for ImportedAnnotation
impl RefUnwindSafe for ImportedAnnotation
impl Send for ImportedAnnotation
impl Sync for ImportedAnnotation
impl Unpin for ImportedAnnotation
impl UnsafeUnpin for ImportedAnnotation
impl UnwindSafe for ImportedAnnotation
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