diff options
Diffstat (limited to 'src/geometry/rounded.rs')
| -rw-r--r-- | src/geometry/rounded.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/geometry/rounded.rs b/src/geometry/rounded.rs index 59c6a72..ce3fc96 100644 --- a/src/geometry/rounded.rs +++ b/src/geometry/rounded.rs @@ -1,4 +1,6 @@ -use crate::geometry::{Cylinder, ShapeType}; +#[cfg(feature = "dim3")] +use crate::geometry::Cylinder; +use crate::geometry::ShapeType; use crate::math::{Isometry, Point, Vector}; use na::Unit; use ncollide::query::{ @@ -12,6 +14,7 @@ pub trait Roundable { fn rounded_shape_type() -> ShapeType; } +#[cfg(feature = "dim3")] impl Roundable for Cylinder { fn rounded_shape_type() -> ShapeType { ShapeType::RoundedCylinder |
