1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::objects::{Curve, GlobalCurve, Surface, SweptCurve};
use super::Sweep;
impl Sweep for Curve {
type Swept = Surface;
fn sweep(
self,
path: impl Into<super::Path>,
tolerance: impl Into<crate::algorithms::approx::Tolerance>,
color: fj_interop::mesh::Color,
) -> Self::Swept {
self.global().sweep(path, tolerance, color)
}
}
impl Sweep for GlobalCurve {
type Swept = Surface;
fn sweep(
self,
path: impl Into<super::Path>,
_: impl Into<crate::algorithms::approx::Tolerance>,
_: fj_interop::mesh::Color,
) -> Self::Swept {
Surface::SweptCurve(SweptCurve {
curve: *self.kind(),
path: path.into().inner(),
})
}
}