-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
860c17d
commit 80cd5f4
Showing
6 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
use fj_math::Vector; | ||
|
||
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>) -> Self::Swept { | ||
fn sweep(self, path: impl Into<Vector<3>>) -> Self::Swept { | ||
self.global_form().sweep(path) | ||
} | ||
} | ||
|
||
impl Sweep for GlobalCurve { | ||
type Swept = Surface; | ||
|
||
fn sweep(self, path: impl Into<super::Path>) -> Self::Swept { | ||
fn sweep(self, path: impl Into<Vector<3>>) -> Self::Swept { | ||
Surface::SweptCurve(SweptCurve { | ||
curve: *self.kind(), | ||
path: path.into().inner(), | ||
path: path.into(), | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters