Update order of code

This commit is contained in:
Hanno Braun 2022-10-13 17:01:24 +02:00
parent 1af539c918
commit 76d4ccc882

View File

@ -203,6 +203,10 @@ mod tests {
.with_surface(Some(surface.clone()))
.as_line_segment_from_points([[0., 0.], [1., 0.]])
.build(&objects);
let side_up = HalfEdge::partial()
.with_surface(Some(surface.clone()))
.as_line_segment_from_points([[1., 0.], [1., 1.]])
.build(&objects);
let top = HalfEdge::partial()
.with_surface(Some(surface.clone()))
.as_line_segment_from_points([[0., 1.], [1., 1.]])
@ -213,10 +217,6 @@ mod tests {
.as_line_segment_from_points([[0., 0.], [0., 1.]])
.build(&objects)
.reverse();
let side_up = HalfEdge::partial()
.with_surface(Some(surface.clone()))
.as_line_segment_from_points([[1., 0.], [1., 1.]])
.build(&objects);
let cycle = Cycle::new(surface, [bottom, side_up, top, side_down]);