pub enum TriTriIsect {
None,
Point(R3),
Segment(R3, R3),
Coplanar {
polygon: Vec<R3>,
same_orientation: bool,
},
}Expand description
Exact intersection of two triangles.
Variants§
None
Point(R3)
Single-point contact (vertex-on-face, vertex-on-edge, edge-through- edge, or interval intersection collapsing to one point).
Segment(R3, R3)
Proper crossing (or edge/vertex contact with positive length).
Coplanar
Coplanar triangles overlapping with positive area. polygon is the
convex overlap region (distinct vertices, no three collinear, no
guaranteed winding); same_orientation is true when the two
triangles’ normals point the same way, false for opposite planes.
Trait Implementations§
Source§impl Clone for TriTriIsect
impl Clone for TriTriIsect
Source§fn clone(&self) -> TriTriIsect
fn clone(&self) -> TriTriIsect
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 TriTriIsect
impl Debug for TriTriIsect
Source§impl PartialEq for TriTriIsect
impl PartialEq for TriTriIsect
impl StructuralPartialEq for TriTriIsect
Auto Trait Implementations§
impl Freeze for TriTriIsect
impl RefUnwindSafe for TriTriIsect
impl Send for TriTriIsect
impl Sync for TriTriIsect
impl Unpin for TriTriIsect
impl UnsafeUnpin for TriTriIsect
impl UnwindSafe for TriTriIsect
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