Skip to content

Commit

Permalink
Remove last use of Vertex
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 20, 2023
1 parent 77e7901 commit b6be89c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions crates/fj-kernel/src/algorithms/sweep/vertex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ mod tests {
algorithms::sweep::Sweep,
builder::{CurveBuilder, HalfEdgeBuilder},
insert::Insert,
objects::Vertex,
partial::{
Partial, PartialCurve, PartialGlobalVertex, PartialHalfEdge,
PartialObject, PartialSurfaceVertex,
Expand All @@ -168,7 +167,7 @@ mod tests {
let mut services = Services::new();

let surface = services.objects.surfaces.xz_plane();
let vertex = {
let (position, surface_vertex) = {
let mut curve = PartialCurve {
surface: Partial::from(surface.clone()),
..Default::default()
Expand All @@ -184,14 +183,10 @@ mod tests {
})
.build(&mut services.objects);

Vertex::new(Point::from([0.]), surface_form)
(Point::from([0.]), surface_form)
};

let half_edge = (
vertex.position(),
vertex.surface_form().clone(),
surface.clone(),
)
let half_edge = (position, surface_vertex, surface.clone())
.sweep([0., 0., 1.], &mut services.objects);

let expected_half_edge = {
Expand Down

0 comments on commit b6be89c

Please sign in to comment.