-
-
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.
Merge pull request #1980 from hannobraun/reverse
Add `ReverseCurveCoordinateSystems`
- Loading branch information
Showing
5 changed files
with
109 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::{objects::HalfEdge, services::Services}; | ||
|
||
use super::ReverseCurveCoordinateSystems; | ||
|
||
impl ReverseCurveCoordinateSystems for HalfEdge { | ||
fn reverse_curve_coordinate_systems(&self, _: &mut Services) -> Self { | ||
let path = self.path().reverse(); | ||
let boundary = self.boundary().reverse(); | ||
|
||
HalfEdge::new( | ||
path, | ||
boundary, | ||
self.curve().clone(), | ||
self.start_vertex().clone(), | ||
self.global_form().clone(), | ||
) | ||
} | ||
} |
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