Prepare to sweep along curves

This commit is contained in:
Hanno Braun 2025-04-30 12:16:10 +02:00
parent 9394091574
commit 209055ada1
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
use itertools::Itertools;
use crate::{
geometry::SweptCurve,
geometry::{FloatingCurveSegment, SweptCurve},
handle::Handle,
topology::{
curve::Curve,
@ -32,11 +32,11 @@ pub trait ConnectExt {
///
/// It should be seen as more of a placeholder for a real implementation of
/// this operation.
fn connect(self, other: Self) -> Solid;
fn connect(self, other: Self, with: FloatingCurveSegment) -> Solid;
}
impl ConnectExt for Handle<Face> {
fn connect(self, other: Self) -> Solid {
fn connect(self, other: Self, _: FloatingCurveSegment) -> Solid {
// Let's designate the two faces as "bottom" and "top", to make it
// easier to talk about them and things related to them, in the
// following code.

View File

@ -34,6 +34,6 @@ impl SweepExt for Handle<Face> {
Handle::new(bottom.flip().translate(offset))
};
top.connect(bottom)
top.connect(bottom, along)
}
}