Compare commits

...

2 Commits

Author SHA1 Message Date
a0007956f1 fix 2024-02-24 20:50:28 -08:00
cf44341c22 ya 2024-02-24 20:46:08 -08:00
2 changed files with 12 additions and 11 deletions

View File

@@ -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"

View File

@@ -18,23 +18,20 @@ 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;
use fj_core::geometry::curve::GlobalPath;
use fj_core::geometry::GlobalPath;
use rand::Rng;
trait ToVec3 {
@@ -53,6 +50,7 @@ impl ToVec3 for fj_math::Vector<3> {
}
}
#[derive(Component)]
struct FjSolidWrapper{
handle: fj_core::storage::Handle<Solid>,