Removed log statements
This commit is contained in:
parent
24c147f47d
commit
94556f71dc
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue