pub struct GeomDiff {
pub status: String,
pub error: Option<String>,
pub file_a: String,
pub file_b: String,
pub a: Option<ShapeMetrics>,
pub b: Option<ShapeMetrics>,
pub common: Option<PieceMetrics>,
pub added: Option<PieceMetrics>,
pub removed: Option<PieceMetrics>,
pub faces_topo: Option<FaceTopo>,
}Expand description
The geometric comparison of two STEP shapes, as reported by cadvm-geom.
added/removed/common are the boolean decomposition of the two inputs
(B−A, A−B, A∩B). All metric fields are optional because the error path omits
them.
Fields§
§status: String"ok" or "error".
error: Option<String>§file_a: String§file_b: String§a: Option<ShapeMetrics>§b: Option<ShapeMetrics>§common: Option<PieceMetrics>§added: Option<PieceMetrics>§removed: Option<PieceMetrics>§faces_topo: Option<FaceTopo>Topological face-to-face classification.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GeomDiff
impl<'de> Deserialize<'de> for GeomDiff
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
impl StructuralPartialEq for GeomDiff
Auto Trait Implementations§
impl Freeze for GeomDiff
impl RefUnwindSafe for GeomDiff
impl Send for GeomDiff
impl Sync for GeomDiff
impl Unpin for GeomDiff
impl UnsafeUnpin for GeomDiff
impl UnwindSafe for GeomDiff
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