Skip to main content

ImprintResultRecord

Struct ImprintResultRecord 

Source
#[non_exhaustive]
pub struct ImprintResultRecord { pub vertices: Vec<ImprintVertex>, pub pieces: Vec<ImprintPieceRecord>, pub by_face: Vec<FaceImprints>, pub edge_splits: Vec<EdgeSplitRecord>, pub barrier_edges: Vec<(u8, u64)>, pub tangent_nodes: Vec<Vec3>, pub section_evidence: bool, pub cosurface_pairs: Vec<(FaceKey, FaceKey)>, pub operand_sliver_regions: Vec<([f64; 3], [f64; 3])>, pub tangent_sections: Vec<TangentSectionRecord>, pub faces_in_unproved_pairs: Option<Vec<FaceKey>>, }
Expand description

Not exhaustive: a new field is not a breaking change. Outside this crate, start from ImprintResultRecord::default() and set the fields you need.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§vertices: Vec<ImprintVertex>§pieces: Vec<ImprintPieceRecord>§by_face: Vec<FaceImprints>§edge_splits: Vec<EdgeSplitRecord>§barrier_edges: Vec<(u8, u64)>

Operand edges geometrically OVERLAPPED by a section curve (the cosurface/coincident locus: an inscribed sphere’s contact circle riding a cap ring). Fragment-selection fate must never flood across them — the two sides of such an edge can lie on opposite sides of the other operand (the cap disc inside, the wall outside).

§tangent_nodes: Vec<Vec3>

Every ISOLATED TANGENT NODE the imprint admitted: a point where the two carriers touch with parallel normals and the section crosses itself, so the pair was marched rather than refused (see imprint/tangent_contact.rs). The boolean attributes a later tearing to these rather than reporting an anonymous degeneracy — the second-order filter cannot decide a third-order singularity, so the assembly is the authority on whether a node it admitted was really imprintable.

§section_evidence: bool

True when the imprint saw ANY surface-contact evidence — an accepted pierce seed, a traced SSI branch (even one later clipped away), or a minted piece. Pure material disjointness leaves none, while a silently-lost section always leaves at least the upstream evidence, so the boolean’s legitimate-empty adjudication requires this to be false.

§cosurface_pairs: Vec<(FaceKey, FaceKey)>

Every face pair the imprint read as ONE surface and exchanged boundary curves across instead of intersecting (cosurface_pair, or the sampled pair classification’s Cosurface). Selection holds a fragment whose point lies in such a partner’s trim On against it, so the coincidence the sections were built on is the one the fragments are kept by.

§operand_sliver_regions: Vec<([f64; 3], [f64; 3])>

BREP_FEATURE_SCALE_OPERAND_SLIVERS: the regions (minimum, maximum) of the slivers FeatureScale registered between the two operands’ faces. The fragmenter narrows its endpoint bands on a face that meets one.

§tangent_sections: Vec<TangentSectionRecord>

Every EXTENDED tangential contact the tangent-curve lane recognised (ImprintOptions::tangent_curve_lane): the carriers touch along a curve inside both trims. A planar-carrier contact is marched and the clipped run described; a curved/curved contact is named at its point and not traced. None of these is imprinted yet — the record exists so the boolean can attribute a refusal on the pair to the contact by name. Appended at the end of the struct (2026-10-10).

§faces_in_unproved_pairs: Option<Vec<FaceKey>>

The faces of either operand that stand in at least one cross-operand face pair the imprint did NOT positively prove apart: every pair whose face boxes met and was neither classified Disjoint (control-hull or parallel-plane separation) nor proved apart by the trim windows’ span hulls. A face absent from it was proved clear of every face of the other operand (its box met none, or each pair it met was proved apart), so nothing the operation added can cross it. None wherever the imprint did not run its plain two-operand pair loop (a self-imprint, a record assembled elsewhere): then no face may be read as proved.

Trait Implementations§

Source§

impl Clone for ImprintResultRecord

Source§

fn clone(&self) -> ImprintResultRecord

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 ImprintResultRecord

Source§

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

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

impl Default for ImprintResultRecord

Source§

fn default() -> ImprintResultRecord

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

impl<'de> Deserialize<'de> for ImprintResultRecord

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<ImprintResultRecord, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ImprintResultRecord

Source§

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

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