From e0709df45b739435c5e06ca5c4eb3049fe2e8573 Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Wed, 15 May 2024 21:48:31 -0400 Subject: [PATCH] Add cone for SDF 1.12 Signed-off-by: Benjamin Perseghetti --- sdf/1.12/CMakeLists.txt | 1 + sdf/1.12/cone_shape.sdf | 9 +++++++++ sdf/1.12/geometry.sdf | 1 + sdf/1.12/particle_emitter.sdf | 4 +++- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 sdf/1.12/cone_shape.sdf diff --git a/sdf/1.12/CMakeLists.txt b/sdf/1.12/CMakeLists.txt index e901587b2..08b4bf240 100644 --- a/sdf/1.12/CMakeLists.txt +++ b/sdf/1.12/CMakeLists.txt @@ -11,6 +11,7 @@ set (sdfs camera.sdf capsule_shape.sdf collision.sdf + cone_shape.sdf contact.sdf cylinder_shape.sdf ellipsoid_shape.sdf diff --git a/sdf/1.12/cone_shape.sdf b/sdf/1.12/cone_shape.sdf new file mode 100644 index 000000000..5805ba6bb --- /dev/null +++ b/sdf/1.12/cone_shape.sdf @@ -0,0 +1,9 @@ + + Cone shape + + Radius of the cone + + + Length of the cone along the z axis + + diff --git a/sdf/1.12/geometry.sdf b/sdf/1.12/geometry.sdf index 884902afb..447338dbf 100644 --- a/sdf/1.12/geometry.sdf +++ b/sdf/1.12/geometry.sdf @@ -8,6 +8,7 @@ + diff --git a/sdf/1.12/particle_emitter.sdf b/sdf/1.12/particle_emitter.sdf index d6a2fdf7e..ad04b150a 100755 --- a/sdf/1.12/particle_emitter.sdf +++ b/sdf/1.12/particle_emitter.sdf @@ -7,7 +7,7 @@ - The type of a particle emitter. One of "box", "cylinder", "ellipsoid", or "point". + The type of a particle emitter. One of "box", "cylinder", "cone", "ellipsoid", or "point". @@ -26,6 +26,8 @@ depending on the emmiter type: - point: The area is ignored. - box: The area is interpreted as width X height X depth. + - cone: The area is interpreted as the bounding box of the + cone. The cone is oriented along the Z-axis. - cylinder: The area is interpreted as the bounding box of the cylinder. The cylinder is oriented along the Z-axis. - ellipsoid: The area is interpreted as the bounding box of an