From f6cec1f5f6762ba2eb94a19893a8b3aa4274ea53 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Jun 2022 15:22:16 +0200 Subject: [PATCH] Don't rely on `Shape::faces` in `ShapeProcessor` --- crates/fj-operations/src/shape_processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fj-operations/src/shape_processor.rs b/crates/fj-operations/src/shape_processor.rs index b7eb835ac..c17e052fe 100644 --- a/crates/fj-operations/src/shape_processor.rs +++ b/crates/fj-operations/src/shape_processor.rs @@ -3,6 +3,7 @@ use fj_interop::{debug::DebugInfo, mesh::Mesh}; use fj_kernel::{ algorithms::{triangulate, InvalidTolerance, Tolerance}, + iter::ObjectIters, validation::{ValidationConfig, ValidationError}, }; use fj_math::{Aabb, Point, Scalar}; @@ -42,8 +43,7 @@ impl ShapeProcessor { let mut debug_info = DebugInfo::new(); let shape = shape .to_shape(&config, tolerance, &mut debug_info)? - .faces() - .map(|handle| handle.get()) + .face_iter() .collect(); let mesh = triangulate(shape, tolerance, &mut debug_info);