diff --git a/src/query/point/point_composite_shape.rs b/src/query/point/point_composite_shape.rs index 1f2d8e26..8ddcf5b2 100644 --- a/src/query/point/point_composite_shape.rs +++ b/src/query/point/point_composite_shape.rs @@ -61,10 +61,7 @@ impl PointQuery for TriMesh { return (proj, feature_id); } - #[cfg(feature = "dim3")] - let solid = false; - #[cfg(feature = "dim2")] - let solid = true; + let solid = cfg!(feature = "dim2"); let mut visitor = PointCompositeShapeProjWithFeatureBestFirstVisitor::new(self, point, solid);