From cdf7b3c97da66dc10c7ad30c678785e4cda0ba9c Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 1 Apr 2022 18:48:04 +0200 Subject: [PATCH] Simplify test --- fj-kernel/src/algorithms/approximation.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fj-kernel/src/algorithms/approximation.rs b/fj-kernel/src/algorithms/approximation.rs index bdbd6d6fa..047bb2fb6 100644 --- a/fj-kernel/src/algorithms/approximation.rs +++ b/fj-kernel/src/algorithms/approximation.rs @@ -120,7 +120,7 @@ mod tests { use crate::{ geometry::Surface, shape::Shape, - topology::{Cycle, Edge, Face, Vertex}, + topology::{Cycle, Face, Vertex}, }; use super::Approximation; @@ -162,14 +162,7 @@ mod tests { let c = Point::from([3., 5., 8.]); let d = Point::from([5., 8., 13.]); - let ab = Edge::build(&mut shape).line_segment_from_points([a, b])?; - let bc = Edge::build(&mut shape).line_segment_from_points([b, c])?; - let cd = Edge::build(&mut shape).line_segment_from_points([c, d])?; - let da = Edge::build(&mut shape).line_segment_from_points([d, a])?; - - let abcd = shape.insert(Cycle { - edges: vec![ab, bc, cd, da], - })?; + let abcd = Cycle::build(&mut shape).polygon([a, b, c, d])?; let surface = shape.insert(Surface::x_y_plane())?; let face = Face::Face {