Compare commits
2 Commits
783d4999a7
...
a0007956f1
| Author | SHA1 | Date | |
|---|---|---|---|
| a0007956f1 | |||
| cf44341c22 |
11
Cargo.toml
11
Cargo.toml
@@ -12,8 +12,11 @@ readme = "README.md"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { version = "0.12.1", default-features = true}
|
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"
|
rand = "0.8.5"
|
||||||
|
|
||||||
|
fj-math = "0.48.0"
|
||||||
|
fj-interop = "0.48.0"
|
||||||
|
fj-core = "0.48.0"
|
||||||
|
fj-export = "0.48.0"
|
||||||
|
|
||||||
|
|||||||
12
src/lib.rs
12
src/lib.rs
@@ -18,23 +18,20 @@ use bevy::utils::default;
|
|||||||
use bevy::app::{App, Plugin, Update};
|
use bevy::app::{App, Plugin, Update};
|
||||||
|
|
||||||
// Importing Fj-core functionalities
|
// 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::algorithms::triangulate::Triangulate;
|
||||||
use fj_core::objects::{Cycle, Region, Shell, Sketch, Solid};
|
use fj_core::objects::{Solid};
|
||||||
use fj_core::operations::{BuildCycle, BuildRegion, BuildSketch, Insert, Reverse, UpdateRegion, UpdateSketch};
|
|
||||||
use fj_core::services::Services;
|
|
||||||
use fj_core::storage::Handle as FjHandle;
|
use fj_core::storage::Handle as FjHandle;
|
||||||
|
|
||||||
// Importing Fj-interop mesh
|
// Importing Fj-interop mesh
|
||||||
use fj_interop::mesh::Mesh as FjMesh;
|
use fj_interop::mesh::Mesh as FjMesh;
|
||||||
|
|
||||||
// Importing Fj-math and other standard functionalities
|
// Importing Fj-math and other standard functionalities
|
||||||
|
|
||||||
use fj_math::{Aabb, Point, Scalar, Vector};
|
use fj_math::{Aabb, Point, Scalar, Vector};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use bevy::math::Vec3;
|
use bevy::math::Vec3;
|
||||||
use fj_core::geometry::curve::GlobalPath;
|
use fj_core::geometry::GlobalPath;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
|
||||||
trait ToVec3 {
|
trait ToVec3 {
|
||||||
@@ -53,6 +50,7 @@ impl ToVec3 for fj_math::Vector<3> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
struct FjSolidWrapper{
|
struct FjSolidWrapper{
|
||||||
handle: fj_core::storage::Handle<Solid>,
|
handle: fj_core::storage::Handle<Solid>,
|
||||||
|
|||||||
Reference in New Issue
Block a user