Skip to content

Commit

Permalink
Require full HalfEdge in connect_to_edges
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 10, 2023
1 parent ab3b061 commit 18fdb97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Sweep for Handle<Face> {
faces.push(face);

top_edges.push((
Partial::from(top_edge),
top_edge,
half_edge.curve(),
half_edge.boundary(),
));
Expand Down
8 changes: 4 additions & 4 deletions crates/fj-kernel/src/builder/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use fj_math::Point;
use crate::{
geometry::curve::Curve,
objects::{HalfEdge, Objects},
partial::{Partial, PartialCycle},
partial::PartialCycle,
services::Service,
storage::Handle,
};
Expand Down Expand Up @@ -45,7 +45,7 @@ pub trait CycleBuilder {
objects: &mut Service<Objects>,
) -> O::SameSize<Handle<HalfEdge>>
where
O: ObjectArgument<(Partial<HalfEdge>, Curve, [Point<1>; 2])>;
O: ObjectArgument<(Handle<HalfEdge>, Curve, [Point<1>; 2])>;
}

impl CycleBuilder for PartialCycle {
Expand Down Expand Up @@ -83,13 +83,13 @@ impl CycleBuilder for PartialCycle {
objects: &mut Service<Objects>,
) -> O::SameSize<Handle<HalfEdge>>
where
O: ObjectArgument<(Partial<HalfEdge>, Curve, [Point<1>; 2])>,
O: ObjectArgument<(Handle<HalfEdge>, Curve, [Point<1>; 2])>,
{
edges.map_with_prev(|(_, curve, boundary), (prev, _, _)| {
let half_edge = HalfEdge::make_half_edge(
curve,
boundary,
Some(prev.read().start_vertex.clone()),
Some(prev.start_vertex().clone()),
None,
objects,
);
Expand Down

0 comments on commit 18fdb97

Please sign in to comment.