#[non_exhaustive]pub struct MeshAnalysis {Show 19 fields
pub input_triangles: usize,
pub out_of_range: usize,
pub non_finite: usize,
pub repeated_index: usize,
pub coincident_corners: usize,
pub duplicate: usize,
pub reversed_duplicate: usize,
pub triangles: usize,
pub vertices: usize,
pub edges: usize,
pub boundary_edges: usize,
pub boundary_components: usize,
pub non_manifold_edges: usize,
pub non_manifold_vertices: usize,
pub orientation_conflicts: usize,
pub components: usize,
pub largest_component: usize,
pub smallest_component: usize,
pub lists: AnalysisLists,
}Expand description
Topology report from analyze_mesh. Not in C++ meshoptimizer.
Triangles are first classified as in sanitize.
Triangles with an out-of-range index, a non-finite referenced position or a
repeated index are counted and left out of the topology; so are triangles
with coincident corners when positions are welded, since their corners
then repeat a vertex. The remaining Self::triangles, duplicates
included, form the analyzed topology, so a duplicate face shows up as the
edge defects it causes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_triangles: usizeTriangles in the input.
out_of_range: usizeLeft out: an index is at or beyond the vertex count.
non_finite: usizeLeft out: a referenced position has a NaN or infinite component.
repeated_index: usizeLeft out: two corners use the same index.
coincident_corners: usizeTriangles with distinct indices and two corners at equal positions (signed zeros equal). Left out only with welded positions; otherwise counted and analyzed.
duplicate: usizeAnalyzed triangles with the same corners and winding as an earlier
analyzed triangle, after a cyclic rotation. The first winding is kept;
later copies of either winding count here.
sanitize with IGNORE_ORIENTATION classifies copies differently.
reversed_duplicate: usizeAnalyzed triangles that are the first with the opposite winding of an
earlier analyzed triangle with the same corners. Later copies of that
winding count as duplicate.
triangles: usizeTriangles in the analyzed topology.
vertices: usizeDistinct vertices used by analyzed triangles.
edges: usizeDistinct undirected edges of analyzed triangles.
boundary_edges: usizeEdges with exactly one face.
boundary_components: usizeConnected sets of boundary edges, joined at shared vertices. Equal to the number of holes and borders when each boundary vertex has one incoming and one outgoing boundary edge; borders that touch at a vertex count as one.
non_manifold_edges: usizeEdges with more than two faces.
non_manifold_vertices: usizeVertices whose faces form more than one fan, where two faces around a vertex are in one fan when a chain of faces sharing edges at that vertex connects them. A bow-tie vertex has two fans.
orientation_conflicts: usizeEdges with exactly two incident faces using the same direction.
components: usizeSets of analyzed triangles connected through shared vertices.
largest_component: usizeTriangles in the largest component, or zero.
smallest_component: usizeTriangles in the smallest component, or zero.
lists: AnalysisListsBounded lists of the counted defects.
Trait Implementations§
Source§impl Clone for MeshAnalysis
impl Clone for MeshAnalysis
Source§impl Debug for MeshAnalysis
impl Debug for MeshAnalysis
Source§impl Default for MeshAnalysis
impl Default for MeshAnalysis
impl Eq for MeshAnalysis
Source§impl PartialEq for MeshAnalysis
impl PartialEq for MeshAnalysis
impl StructuralPartialEq for MeshAnalysis
Auto Trait Implementations§
impl Forget for MeshAnalysis
impl Freeze for MeshAnalysis
impl RefUnwindSafe for MeshAnalysis
impl Send for MeshAnalysis
impl Sync for MeshAnalysis
impl Unpin for MeshAnalysis
impl UnsafeUnpin for MeshAnalysis
impl UnwindSafe for MeshAnalysis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more