mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-25 08:35:51 +00:00
Simplify test
This commit is contained in:
parent
a1ab761705
commit
cdf7b3c97d
@ -120,7 +120,7 @@ mod tests {
|
|||||||
use crate::{
|
use crate::{
|
||||||
geometry::Surface,
|
geometry::Surface,
|
||||||
shape::Shape,
|
shape::Shape,
|
||||||
topology::{Cycle, Edge, Face, Vertex},
|
topology::{Cycle, Face, Vertex},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::Approximation;
|
use super::Approximation;
|
||||||
@ -162,14 +162,7 @@ mod tests {
|
|||||||
let c = Point::from([3., 5., 8.]);
|
let c = Point::from([3., 5., 8.]);
|
||||||
let d = Point::from([5., 8., 13.]);
|
let d = Point::from([5., 8., 13.]);
|
||||||
|
|
||||||
let ab = Edge::build(&mut shape).line_segment_from_points([a, b])?;
|
let abcd = Cycle::build(&mut shape).polygon([a, b, c, d])?;
|
||||||
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 surface = shape.insert(Surface::x_y_plane())?;
|
let surface = shape.insert(Surface::x_y_plane())?;
|
||||||
let face = Face::Face {
|
let face = Face::Face {
|
||||||
|
Loading…
Reference in New Issue
Block a user