-
-
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 #416 from hannobraun/insert
Replace `add_*` method with `Shape::insert`
- Loading branch information
Showing
19 changed files
with
241 additions
and
239 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,33 @@ | ||
use fj_math::Point; | ||
|
||
use crate::{ | ||
geometry::{Curve, Surface}, | ||
topology::{Cycle, Edge, Face, Vertex}, | ||
}; | ||
|
||
use super::validate::Validate; | ||
|
||
/// Marker trait for geometric and topological objects | ||
pub trait Object: 'static + Validate + private::Sealed {} | ||
|
||
impl private::Sealed for Point<3> {} | ||
impl private::Sealed for Curve {} | ||
impl private::Sealed for Surface {} | ||
|
||
impl private::Sealed for Vertex {} | ||
impl private::Sealed for Edge {} | ||
impl private::Sealed for Cycle {} | ||
impl private::Sealed for Face {} | ||
|
||
impl Object for Point<3> {} | ||
impl Object for Curve {} | ||
impl Object for Surface {} | ||
|
||
impl Object for Vertex {} | ||
impl Object for Edge {} | ||
impl Object for Cycle {} | ||
impl Object for Face {} | ||
|
||
mod private { | ||
pub trait Sealed {} | ||
} |
Oops, something went wrong.