pub struct MeshBoolean {
pub mesh: Triangulation,
pub cut: Vec<bool>,
pub first_new_vertex: usize,
pub rounding: f64,
}Expand description
The answer of a mesh boolean.
Fields§
§mesh: TriangulationThe result: closed, 2-manifold and wound outward, or empty where
nothing is left. Its vertices are the input vertices kept, first
operand first, each at its input position exactly and in input
order, then the new ones from MeshBoolean::first_new_vertex
on. It carries no normals and no parameters.
cut: Vec<bool>For each triangle of the result, whether it is new: a piece of an input triangle that the other operand cut. A triangle not flagged is an input triangle, kept whole, possibly wound the other way.
first_new_vertex: usizeThe index of the first vertex made where the operands meet.
rounding: f64The farthest any new vertex lies from the exact point it rounds: a bound, of the order of the last place of its coordinates.
Trait Implementations§
Source§impl Clone for MeshBoolean
impl Clone for MeshBoolean
Source§impl Debug for MeshBoolean
impl Debug for MeshBoolean
Source§impl PartialEq for MeshBoolean
impl PartialEq for MeshBoolean
impl StructuralPartialEq for MeshBoolean
Auto Trait Implementations§
impl Freeze for MeshBoolean
impl RefUnwindSafe for MeshBoolean
impl Send for MeshBoolean
impl Sync for MeshBoolean
impl Unpin for MeshBoolean
impl UnsafeUnpin for MeshBoolean
impl UnwindSafe for MeshBoolean
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.