diff --git a/Cargo.toml b/Cargo.toml index 50f3a52..3bbc83a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,11 @@ readme = "README.md" [dependencies] bevy = { version = "0.12.1", default-features = true} -fj-math = "0.47.0" -fj-interop = "0.47.0" -fj-core = "0.47.0" -fj-export = "0.47.0" + rand = "0.8.5" + +fj-math = "0.48.0" +fj-interop = "0.48.0" +fj-core = "0.48.0" +fj-export = "0.48.0" + diff --git a/src/lib.rs b/src/lib.rs index 8864572..3932c62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,19 +18,16 @@ use bevy::utils::default; use bevy::app::{App, Plugin, Update}; // Importing Fj-core functionalities -use fj_core::algorithms::approx::Tolerance; -use fj_core::algorithms::bounding_volume::BoundingVolume; -use fj_core::algorithms::sweep::Sweep; + use fj_core::algorithms::triangulate::Triangulate; -use fj_core::objects::{Cycle, Region, Shell, Sketch, Solid}; -use fj_core::operations::{BuildCycle, BuildRegion, BuildSketch, Insert, Reverse, UpdateRegion, UpdateSketch}; -use fj_core::services::Services; +use fj_core::objects::{Solid}; use fj_core::storage::Handle as FjHandle; // Importing Fj-interop mesh use fj_interop::mesh::Mesh as FjMesh; // Importing Fj-math and other standard functionalities + use fj_math::{Aabb, Point, Scalar, Vector}; use std::ops::Deref; use bevy::math::Vec3; @@ -53,6 +50,7 @@ impl ToVec3 for fj_math::Vector<3> { } } + #[derive(Component)] struct FjSolidWrapper{ handle: fj_core::storage::Handle,