diff --git a/doc/APIreference/APIglobals.rst b/doc/APIreference/APIglobals.rst index ca4c9f41..b5dab753 100644 --- a/doc/APIreference/APIglobals.rst +++ b/doc/APIreference/APIglobals.rst @@ -472,7 +472,7 @@ shown in the table below. Their names are in the format ``mjKEY_XXX``. They corr - The maximal number of lines per 2D figure (:ref:`mjvFigure`). Defined in `mjvisualize.h `_. * - ``mjMAXLINEPNT`` - - 1000 + - 1001 - The maximal number of points in each line in a 2D figure. Note that the buffer ``mjvFigure.linepnt`` has length ``2*mjMAXLINEPNT`` because each point has X and Y coordinates. Defined in `mjvisualize.h `_. diff --git a/include/mujoco/mjvisualize.h b/include/mujoco/mjvisualize.h index 0fce23f9..93102451 100644 --- a/include/mujoco/mjvisualize.h +++ b/include/mujoco/mjvisualize.h @@ -24,7 +24,7 @@ #define mjMAXLIGHT 100 // maximum number of lights in a scene #define mjMAXOVERLAY 500 // maximum number of characters in overlay text #define mjMAXLINE 100 // maximum number of lines per plot -#define mjMAXLINEPNT 1000 // maximum number points per line +#define mjMAXLINEPNT 1001 // maximum number points per line #define mjMAXPLANEGRID 200 // maximum number of grid divisions for plane diff --git a/python/mujoco/introspect/structs.py b/python/mujoco/introspect/structs.py index 36984603..6b53781a 100644 --- a/python/mujoco/introspect/structs.py +++ b/python/mujoco/introspect/structs.py @@ -7394,7 +7394,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([ name='linedata', type=ArrayType( inner_type=ValueType(name='float'), - extents=(100, 2000), + extents=(100, 2002), ), doc='line data (x,y)', ), diff --git a/unity/Runtime/Bindings/MjBindings.cs b/unity/Runtime/Bindings/MjBindings.cs index e33bb6df..5f05a0b8 100644 --- a/unity/Runtime/Bindings/MjBindings.cs +++ b/unity/Runtime/Bindings/MjBindings.cs @@ -107,7 +107,7 @@ public const int mjNGROUP = 6; public const int mjMAXLIGHT = 100; public const int mjMAXOVERLAY = 500; public const int mjMAXLINE = 100; -public const int mjMAXLINEPNT = 1000; +public const int mjMAXLINEPNT = 1001; public const int mjMAXPLANEGRID = 200; public const bool THIRD_PARTY_MUJOCO_MJXMACRO_H_ = true; public const bool THIRD_PARTY_MUJOCO_MUJOCO_H_ = true; @@ -6306,7 +6306,7 @@ public unsafe struct mjvFigure_ { public int highlightid; public float selection; public fixed int linepnt[100]; - public fixed float linedata[100 * 2000]; + public fixed float linedata[100 * 2002]; public fixed int xaxispixel[2]; public fixed int yaxispixel[2]; public fixed float xaxisdata[2];