Add rounded cylinder.

This commit is contained in:
Crozet Sébastien
2020-10-20 15:57:54 +02:00
parent d513c22d33
commit 6495847095
10 changed files with 242 additions and 81 deletions

View File

@@ -411,7 +411,7 @@ impl GraphicsManager {
}
#[cfg(feature = "dim3")]
if let Some(cylinder) = shape.as_cylinder() {
if let Some(cylinder) = shape.as_cylinder().or(shape.as_rounded().map(|r| &r.shape)) {
out.push(Node::Cylinder(Cylinder::new(
handle,
cylinder.half_height,