mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 02:48:27 +00:00
Move tolerance
to geometry
It is starting to see use there, and I think it makes more sense for `approx` to depend on `geometry` than the other way around. `geometry` can be seen to provide low-level geometry primitives, which `approx`, which is higher-level functionality, should depend on at some point.
This commit is contained in:
parent
dc0c0108d1
commit
8f57025392
@ -6,7 +6,6 @@ pub mod half_edge;
|
|||||||
pub mod shell;
|
pub mod shell;
|
||||||
pub mod sketch;
|
pub mod sketch;
|
||||||
pub mod solid;
|
pub mod solid;
|
||||||
pub mod tolerance;
|
|
||||||
|
|
||||||
mod circle;
|
mod circle;
|
||||||
mod curve;
|
mod curve;
|
||||||
@ -25,10 +24,8 @@ use vertex::VertexApproxCache;
|
|||||||
|
|
||||||
use crate::geometry::Geometry;
|
use crate::geometry::Geometry;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::circle::PathApproxParams;
|
||||||
circle::PathApproxParams,
|
pub use crate::geometry::{InvalidTolerance, Tolerance};
|
||||||
tolerance::{InvalidTolerance, Tolerance},
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Approximate an object
|
/// Approximate an object
|
||||||
pub trait Approx: Sized {
|
pub trait Approx: Sized {
|
||||||
|
@ -5,6 +5,7 @@ mod curve;
|
|||||||
mod geometry;
|
mod geometry;
|
||||||
mod path;
|
mod path;
|
||||||
mod surface;
|
mod surface;
|
||||||
|
mod tolerance;
|
||||||
mod vertex;
|
mod vertex;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
@ -13,5 +14,6 @@ pub use self::{
|
|||||||
geometry::Geometry,
|
geometry::Geometry,
|
||||||
path::Path,
|
path::Path,
|
||||||
surface::SurfaceGeom,
|
surface::SurfaceGeom,
|
||||||
|
tolerance::{InvalidTolerance, Tolerance},
|
||||||
vertex::{LocalVertexGeom, VertexGeom},
|
vertex::{LocalVertexGeom, VertexGeom},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user