Skip to content

Commit 0a42505

Browse files
committed
make BSP bounding box optimization a compile time option, begin making Mesh and Sketch compile time options
1 parent 95016e8 commit 0a42505

File tree

5 files changed

+134
-432
lines changed

5 files changed

+134
-432
lines changed

Cargo.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ serde = { version = "1.0.228", optional = true }
9191
uuid = { version = "1.18", features = ["js"] }
9292

9393
[features]
94-
default = ["f64", "bmesh", "stl-io", "dxf-io", "obj-io", "ply-io", "amf-io", "gltf-io", "chull-io", "image-io", "metaballs", "sdf", "offset", "delaunay", "truetype-text", "hershey-text"]
94+
default = ["f64", "bmesh", "mesh", "sketch", "stl-io", "dxf-io", "obj-io", "ply-io", "amf-io", "gltf-io", "chull-io", "image-io", "metaballs", "sdf", "offset", "delaunay", "truetype-text", "hershey-text"]
9595
parallel = [
9696
"rayon",
9797
"geo/multithreading",
@@ -109,6 +109,15 @@ f32 = [
109109
"rapier3d",
110110
"parry3d",
111111
]
112+
mesh = [
113+
# BSP backed Mesh datatype
114+
]
115+
mesh-bbopt = [
116+
# Enable bounding box optimization for Mesh BSP
117+
]
118+
sketch = [
119+
# geo backed Sketch datatype
120+
]
112121
bmesh = [
113122
"boolmesh",
114123
]

src/bmesh/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use boolmesh::{
1717

1818
use nalgebra::{Matrix4, Point3};
1919
use std::{fmt::Debug, sync::OnceLock};
20+
21+
#[cfg(feature = "mesh")]
2022
use crate::mesh::Mesh;
2123

2224
/// A solid represented by boolmesh’s `Manifold`, wired into csgrs’ `CSG` trait.

0 commit comments

Comments
 (0)