pub struct SourceMetadata {
pub version: u32,
pub triangle_indices: Vec<usize>,
pub hint: SurfaceHint,
pub source_face_id: Option<u64>,
pub source_face_name: Option<String>,
pub source_surface_id: Option<String>,
pub orientation: Option<i8>,
pub source_tolerance: Option<f64>,
}Expand description
Versioned sidecar metadata. Stable source IDs are deliberately distinct from sequential tessellation face indices.
Fields§
§version: u32Sidecar schema version. Version 1 is currently supported.
triangle_indices: Vec<usize>Mesh triangles to which this metadata applies.
hint: SurfaceHintPrior knowledge about the source surface.
source_face_id: Option<u64>Stable source-system face identifier, when available.
source_face_name: Option<String>Human-readable source-system face name, when available.
source_surface_id: Option<String>Stable source-system surface identifier, when available.
orientation: Option<i8>Source orientation relative to triangle winding, as -1 or 1.
source_tolerance: Option<f64>Positive source-model geometric tolerance, when available.
Trait Implementations§
Source§impl Clone for SourceMetadata
impl Clone for SourceMetadata
Source§fn clone(&self) -> SourceMetadata
fn clone(&self) -> SourceMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceMetadata
impl Debug for SourceMetadata
Source§impl<'de> Deserialize<'de> for SourceMetadata
impl<'de> Deserialize<'de> for SourceMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SourceMetadata
impl PartialEq for SourceMetadata
Source§impl Serialize for SourceMetadata
impl Serialize for SourceMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SourceMetadata
Auto Trait Implementations§
impl Freeze for SourceMetadata
impl RefUnwindSafe for SourceMetadata
impl Send for SourceMetadata
impl Sync for SourceMetadata
impl Unpin for SourceMetadata
impl UnsafeUnpin for SourceMetadata
impl UnwindSafe for SourceMetadata
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