This class is autogenerated. More detailed documentation can be found in the SDFormat spec.

class v18.geometry.Geometry(empty=None, box=None, capsule=None, cylinder=None, ellipsoid=None, heightmap=None, image=None, mesh=None, plane=None, polyline=None, sphere=None)

The shape of the visual or collision object.

empty: You can use the empty tag to make empty geometries.
box: Box shape
capsule: Capsule shape
cylinder: Cylinder shape
ellipsoid: Ellipsoid shape
heightmap: A heightmap based on a 2d grayscale image.
image: Extrude a set of boxes from a grayscale image.
mesh: Mesh shape
plane: Plane shape
polyline: Defines an extruded polyline shape
sphere: Sphere shape

Nested Elements

Note that only complex elements are listed here. Elements that resolve to simple types (int, str, bool) are inlined.


Box shape.

v18.geometry.Geometry.Capsule([radius, length])

Capsule shape.

v18.geometry.Geometry.Cylinder([radius, length])

Cylinder shape.


Ellipsoid shape.

v18.geometry.Geometry.Heightmap([uri, size, ...])

A heightmap based on a 2d grayscale image.

v18.geometry.Geometry.Image([uri, scale, ...])

Extrude a set of boxes from a grayscale image.

v18.geometry.Geometry.Mesh([uri, submesh, scale])

Mesh shape.

v18.geometry.Geometry.Plane([normal, size])

Plane shape.

v18.geometry.Geometry.Polyline([point, height])

Defines an extruded polyline shape.


Sphere shape.