ExMujoco.Types.MeshBuiltin (ExMujoco v0.2.3)

Copy Markdown View Source

mjtMeshBuiltin — type of built-in procedural mesh. From MuJoCo's headers, as numbers. All 14 values carry a number in the header.

Summary

Functions

mjMESH_BUILTIN_BOX is 9 — box.

mjMESH_BUILTIN_CONE is 3 — cone.

mjMESH_BUILTIN_CYLINDER is 10 — cylinder.

mjMESH_BUILTIN_DISC is 13 — disc.

mjMESH_BUILTIN_ELLIPSOID is 11 — ellipsoid.

mjMESH_BUILTIN_GRID is 8 — grid (2D or 3D).

mjMESH_BUILTIN_HEMISPHERE is 2 — hemisphere.

mjMESH_BUILTIN_NONE is 0 — no built-in mesh.

mjMESH_BUILTIN_PLATE is 7 — plate.

mjMESH_BUILTIN_SPHERE is 1 — sphere.

mjMESH_BUILTIN_SQUARE is 12 — square.

mjMESH_BUILTIN_SUPERSPHERE is 4 — supersphere.

mjMESH_BUILTIN_SUPERTORUS is 5 — supertorus.

mjMESH_BUILTIN_WEDGE is 6 — wedge.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

builtin_box()

@spec builtin_box() :: 9

mjMESH_BUILTIN_BOX is 9 — box.

builtin_cone()

@spec builtin_cone() :: 3

mjMESH_BUILTIN_CONE is 3 — cone.

builtin_cylinder()

@spec builtin_cylinder() :: 10

mjMESH_BUILTIN_CYLINDER is 10 — cylinder.

builtin_disc()

@spec builtin_disc() :: 13

mjMESH_BUILTIN_DISC is 13 — disc.

builtin_ellipsoid()

@spec builtin_ellipsoid() :: 11

mjMESH_BUILTIN_ELLIPSOID is 11 — ellipsoid.

builtin_grid()

@spec builtin_grid() :: 8

mjMESH_BUILTIN_GRID is 8 — grid (2D or 3D).

builtin_hemisphere()

@spec builtin_hemisphere() :: 2

mjMESH_BUILTIN_HEMISPHERE is 2 — hemisphere.

builtin_none()

@spec builtin_none() :: 0

mjMESH_BUILTIN_NONE is 0 — no built-in mesh.

builtin_plate()

@spec builtin_plate() :: 7

mjMESH_BUILTIN_PLATE is 7 — plate.

builtin_sphere()

@spec builtin_sphere() :: 1

mjMESH_BUILTIN_SPHERE is 1 — sphere.

builtin_square()

@spec builtin_square() :: 12

mjMESH_BUILTIN_SQUARE is 12 — square.

builtin_supersphere()

@spec builtin_supersphere() :: 4

mjMESH_BUILTIN_SUPERSPHERE is 4 — supersphere.

builtin_supertorus()

@spec builtin_supertorus() :: 5

mjMESH_BUILTIN_SUPERTORUS is 5 — supertorus.

builtin_wedge()

@spec builtin_wedge() :: 6

mjMESH_BUILTIN_WEDGE is 6 — wedge.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.