Removed log statements

This commit is contained in:
Emi Simpson 2021-11-14 16:25:11 -05:00
parent 24c147f47d
commit 94556f71dc
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 0 additions and 3 deletions

View File

@ -368,7 +368,6 @@ impl DelaunayDemo {
fn add_point(&mut self, node: Node) -> Result<(), String> {
println!("Adding point {:?}", node);
// Remove invalid triangles and coalesce their edges
let mut orphaned_edges: Vec<_> = Vec::with_capacity(self.triangles.len() * 3);
@ -384,12 +383,10 @@ impl DelaunayDemo {
}
}
orphaned_edges.retain(|e| self.adjacency.contains_key(e));
println!("Orphaned Edges: {:?}", orphaned_edges);
// For every edge form a new triangle with that edge and this point
let node = Arc::new(Cell::new(node));
for edge in orphaned_edges {
println!("Creating triangle with: {:?}", edge);
self.create_triangle([
Edge(edge.0.clone(), node.clone()),
Edge(edge.1.clone(), node.clone()),