-
-
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 #1003 from hannobraun/approx
Clean up `approx` module
- Loading branch information
Showing
19 changed files
with
133 additions
and
100 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
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
15 changes: 13 additions & 2 deletions
15
.../fj-kernel/src/algorithms/approx/edges.rs → ...s/fj-kernel/src/algorithms/approx/edge.rs
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 |
---|---|---|
@@ -1,13 +1,27 @@ | ||
mod curves; | ||
mod cycles; | ||
mod edges; | ||
mod faces; | ||
//! Approximation of objects | ||
mod curve; | ||
mod cycle; | ||
mod edge; | ||
mod face; | ||
mod local; | ||
mod tolerance; | ||
|
||
pub use self::{ | ||
cycles::CycleApprox, | ||
faces::FaceApprox, | ||
cycle::CycleApprox, | ||
face::FaceApprox, | ||
local::{Local, LocalForm}, | ||
tolerance::{InvalidTolerance, Tolerance}, | ||
}; | ||
|
||
/// Approximate an object | ||
pub trait Approx { | ||
/// The approximation of the object | ||
type Approximation; | ||
|
||
/// Approximate the object | ||
/// | ||
/// `tolerance` defines how far the approximation is allowed to deviate from | ||
/// the actual object. | ||
fn approx(&self, tolerance: Tolerance) -> Self::Approximation; | ||
} |
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
Oops, something went wrong.