check nodes instead of half edges to confirm faces in paint bucket graph

This commit is contained in:
Skyler Lehmkuhl
2025-11-19 04:30:45 -05:00
parent 71f9283356
commit 7d90eed1ec
3 changed files with 182 additions and 16 deletions
@@ -85,6 +85,11 @@ impl Action for PaintBucketAction {
println!("Building planar graph...");
let graph = PlanarGraph::build(&all_curves);
// Store graph for debug visualization
if let Ok(mut debug_graph) = crate::planar_graph::DEBUG_GRAPH.lock() {
*debug_graph = Some(graph.clone());
}
// Step 3: Render debug visualization of planar graph
println!("Rendering planar graph debug visualization...");
let (nodes_shape, edges_shape) = graph.render_debug();