-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
Cycle
validation check to Face
/Sketch
The code of this check is going to require access to a `Surface` soon, due to changes I'm working on. The reshuffling done in this commit is preparation for having this surface available.
- Loading branch information
1 parent
1a48391
commit 97bf88f
Showing
4 changed files
with
73 additions
and
24 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,24 +1,17 @@ | ||
use crate::{ | ||
geometry::Geometry, | ||
topology::Cycle, | ||
validation::{ | ||
checks::AdjacentHalfEdgesNotConnected, ValidationCheck, | ||
ValidationConfig, ValidationError, | ||
}, | ||
validation::{ValidationConfig, ValidationError}, | ||
}; | ||
|
||
use super::Validate; | ||
|
||
impl Validate for Cycle { | ||
fn validate( | ||
&self, | ||
config: &ValidationConfig, | ||
errors: &mut Vec<ValidationError>, | ||
geometry: &Geometry, | ||
_: &ValidationConfig, | ||
_: &mut Vec<ValidationError>, | ||
_: &Geometry, | ||
) { | ||
errors.extend( | ||
AdjacentHalfEdgesNotConnected::check(self, geometry, config) | ||
.map(Into::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