Skip to content

Commit

Permalink
Add cone for SDF 1.12
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed May 16, 2024
1 parent a6d087c commit e0709df
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions sdf/1.12/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set (sdfs
camera.sdf
capsule_shape.sdf
collision.sdf
cone_shape.sdf
contact.sdf
cylinder_shape.sdf
ellipsoid_shape.sdf
Expand Down
9 changes: 9 additions & 0 deletions sdf/1.12/cone_shape.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<element name="cone" required="0">
<description>Cone shape</description>
<element name="radius" type="double" default="1" required="1">
<description>Radius of the cone</description>
</element>
<element name="length" type="double" default="1" required="1">
<description>Length of the cone along the z axis</description>
</element>
</element>
1 change: 1 addition & 0 deletions sdf/1.12/geometry.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<include filename="box_shape.sdf" required="0"/>
<include filename="capsule_shape.sdf" required="0"/>
<include filename="cone_shape.sdf" required="0"/>
<include filename="cylinder_shape.sdf" required="0"/>
<include filename="ellipsoid_shape.sdf" required="0"/>
<include filename="heightmap_shape.sdf" required="0"/>
Expand Down
4 changes: 3 additions & 1 deletion sdf/1.12/particle_emitter.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</attribute>

<attribute name="type" type="string" default="point" required="1">
<description>The type of a particle emitter. One of "box", "cylinder", "ellipsoid", or "point".</description>
<description><description>The type of a particle emitter. One of "box", "cylinder", "cone", "ellipsoid", or "point".</description>
</attribute>

<element name="emitting" type="bool" default="true" required="0">
Expand All @@ -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
Expand Down

0 comments on commit e0709df

Please sign in to comment.