#[non_exhaustive]pub struct RemeshReport {Show 13 fields
pub input_triangles: usize,
pub output_triangles: usize,
pub splits: usize,
pub collapses: usize,
pub flips: usize,
pub moves: usize,
pub protected_edges: usize,
pub edges_in_band: Scalar,
pub valence_deviation_before: Scalar,
pub valence_deviation_after: Scalar,
pub min_angle: Scalar,
pub max_vertex_deviation: Scalar,
pub attribute_fates: Vec<(String, AttributeFate)>,
}Expand description
What a remeshing did and how close it came to the target.
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.input_triangles: usizeTriangles before.
output_triangles: usizeTriangles after.
splits: usizeEdge splits performed.
collapses: usizeEdge collapses performed.
flips: usizeEdge flips performed.
moves: usizeVertex relocations (relaxation and projection) performed.
protected_edges: usizeProtected (boundary or sharp feature) edges of the output.
edges_in_band: ScalarFraction of output edges with length in [4/5 L, 4/3 L].
valence_deviation_before: ScalarMean absolute distance of the input’s vertex valences from optimal (6 inside, 4 on a boundary).
valence_deviation_after: ScalarThe same for the output.
min_angle: ScalarSmallest interior angle of any output triangle, in radians.
max_vertex_deviation: ScalarLargest distance of an output vertex from the input surface, in model units.
attribute_fates: Vec<(String, AttributeFate)>What happened to each named attribute channel: every one is dropped, since remeshing creates vertices with no preimage to read from.
Trait Implementations§
Source§impl Clone for RemeshReport
impl Clone for RemeshReport
Source§fn clone(&self) -> RemeshReport
fn clone(&self) -> RemeshReport
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 RemeshReport
impl Debug for RemeshReport
Source§impl PartialEq for RemeshReport
impl PartialEq for RemeshReport
impl StructuralPartialEq for RemeshReport
Auto Trait Implementations§
impl Freeze for RemeshReport
impl RefUnwindSafe for RemeshReport
impl Send for RemeshReport
impl Sync for RemeshReport
impl Unpin for RemeshReport
impl UnsafeUnpin for RemeshReport
impl UnwindSafe for RemeshReport
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