-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor | s&t : export all through sal-3dlib
- Loading branch information
Showing
39 changed files
with
108 additions
and
53 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
name = "sal-3dlib-core" | ||
version = "0.0.1" | ||
edition = "2021" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
//! Abstact definition of objects and operations over the CAD kernel. | ||
//! It is assumed that the kernel is universal, but it implements all the necessary traits. | ||
// | ||
pub mod bound; | ||
pub mod gmath; | ||
pub mod ops; | ||
pub mod props; | ||
pub mod topology; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 +1,15 @@ | ||
[package] | ||
name = "sal-3dlib" | ||
version = "0.0.1" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
sal-3dlib-core = { path = "../sal-3dlib-core/" } | ||
sal-occt-rs = { path = "../sal-occt-rs/" } | ||
|
||
[dev-dependencies] | ||
debugging.workspace = true | ||
env_logger.workspace = true | ||
log.workspace = true | ||
testing.workspace = true | ||
sal-sync.workspace = true |
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,9 +1,28 @@ | ||
//! This is a set of modules for interacting with the CAD kernel. | ||
//! It is assumed that the kernel is universal, | ||
//! but it implements all the necessary traits. | ||
//! Set of modules for interacting with the CAD kernel. | ||
//! | ||
//! Main objects and operations are defined in the core module (see [sal_3dlib_core]). | ||
//! | ||
//! [sal_occt_rs] provides an implementation of the core. | ||
// | ||
pub mod bound; | ||
pub mod gmath; | ||
pub mod ops; | ||
pub mod props; | ||
pub mod topology; | ||
pub use sal_3dlib_core::bound; | ||
pub use sal_occt_rs::fs; | ||
pub use sal_occt_rs::gmath; | ||
/// | ||
/// Operations for creating, transforming, and modifying objects. | ||
pub mod ops { | ||
/// | ||
/// Create new objects from combinations of two groups of objects. | ||
pub mod boolean { | ||
/// | ||
/// Build an elementary volume from a set of objects. | ||
pub mod volume { | ||
pub use sal_3dlib_core::ops::boolean::volume::*; | ||
pub use sal_occt_rs::ops::boolean::volume::VolumeConf; | ||
} | ||
pub use sal_3dlib_core::ops::boolean::*; | ||
pub use sal_occt_rs::ops::boolean::OpConf; | ||
} | ||
pub use sal_3dlib_core::ops::{transform, Polygon}; | ||
} | ||
pub use sal_3dlib_core::props; | ||
pub use sal_occt_rs::export::topology; |
File renamed without changes.
13 changes: 10 additions & 3 deletions
13
crates/sal-occt-rs/tests/integration_test.rs → crates/sal-3dlib/tests/integration_test.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
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,16 +1,16 @@ | ||
//! Implementation of [sal_3dlib::gmath]. | ||
//! Implementation of [sal_3dlib_core::gmath]. | ||
// | ||
mod point; | ||
mod vector; | ||
// | ||
use sal_3dlib::gmath; | ||
use sal_3dlib_core::gmath; | ||
/// | ||
/// Location in 3-dimensional space. | ||
/// | ||
/// See [sal_3dlib::gmath::Point] for details. | ||
/// See [sal_3dlib_core::gmath::Point] for details. | ||
pub type Point = gmath::Point<3>; | ||
/// | ||
/// Displacment in 3-dimensional space. | ||
/// | ||
/// See [sal_3dlib::gmath::Vector] for details. | ||
/// See [sal_3dlib_core::gmath::Vector] for details. | ||
pub struct Vector(pub(crate) gmath::Vector<3>); |
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,3 +1,3 @@ | ||
//! Implementation of [sal_3dlib::ops]. | ||
//! Implementation of [sal_3dlib_core::ops]. | ||
// | ||
pub mod boolean; |
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,3 +1,3 @@ | ||
//! Implementation of [sal_3dlib::topology]. | ||
//! Inner structures used for [sal_3dlib_core::topology::Shape]. | ||
// | ||
pub mod shape; |
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,5 +1,5 @@ | ||
use super::*; | ||
use sal_3dlib::props::Center; | ||
use sal_3dlib_core::props::Center; | ||
// | ||
// | ||
impl Center for Compound { | ||
|
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