mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-25 00:25:51 +00:00
Simplify test
This commit is contained in:
parent
a1ab761705
commit
cdf7b3c97d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user