diff --git a/libraries/path-bool/src/path/intersection_path_segment.rs b/libraries/path-bool/src/path/intersection_path_segment.rs index d93c2b16f..00153b573 100644 --- a/libraries/path-bool/src/path/intersection_path_segment.rs +++ b/libraries/path-bool/src/path/intersection_path_segment.rs @@ -115,14 +115,14 @@ pub fn path_segment_intersection(seg0: &PathSegment, seg1: &PathSegment, endpoin let path2 = path_segment_cubic_to_lyon(*s2, *c12, *c22, *e2); let intersections = path1.cubic_intersections_t(&path2); - let mut file = std::fs::File::options().append(true).create(true).open("/tmp/intersections").unwrap(); - let format_curve = |seg0: &PathSegment| seg0.to_cubic().map(|point| format!("{} {}", point.x, point.y)).join(" "); + // let mut file = std::fs::File::options().append(true).create(true).open("/tmp/intersections").unwrap(); + // let format_curve = |seg0: &PathSegment| seg0.to_cubic().map(|point| format!("{} {}", point.x, point.y)).join(" "); let intersections: Vec<_> = intersections.into_iter().map(|(s, t)| [s, t]).collect(); - let intersections_fmt: Vec<_> = intersections.iter().map(|[s, t]| format!("{},{}", s, t)).collect(); - if !intersections.is_empty() { - writeln!(&mut file, "{}\n{}\n{}\n", format_curve(seg0), format_curve(seg1), intersections_fmt.join(" "),).unwrap(); - file.flush().unwrap(); - } + // let intersections_fmt: Vec<_> = intersections.iter().map(|[s, t]| format!("{},{}", s, t)).collect(); + // if !intersections.is_empty() { + // writeln!(&mut file, "{}\n{}\n{}\n", format_curve(seg0), format_curve(seg1), intersections_fmt.join(" "),).unwrap(); + // file.flush().unwrap(); + // } // let intersections: Vec<_> = intersections.into_iter().map(|(s, t)| [s, t]).collect(); return intersections; }