Skip to content

Commit

Permalink
Replace glob import with explicit items
Browse files Browse the repository at this point in the history
  • Loading branch information
Makogan (Makogan) committed Jul 15, 2024
1 parent f8d272d commit ff83f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/transformation/mesh_intersection/mesh_intersection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,9 @@ fn merge_triangle_sets(

let [id1, id2, id3] = topology_indices.last().unwrap();

// This should *never* trigger.
// This should *never* trigger. If it does
// it means the code has created a triangle with duplicate vertices,
// which means we encountered an unaccounted for edge case.
if id1 == id2 || id1 == id3 || id2 == id3 {
return Err(MeshIntersectionError::DuplicateVertices);
}
Expand Down
2 changes: 1 addition & 1 deletion src/transformation/wavefront.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::shape::TriMesh;
use obj::*;
use obj::{Group, IndexTuple, ObjData, ObjError, Object, SimplePolygon};
use std::path::PathBuf;

impl TriMesh {
Expand Down

0 comments on commit ff83f9d

Please sign in to comment.