|
|
|
@ -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<Solid>,
|
|
|
|
|