Remove `mjWARN_VGEOMFULL, handle visual geom buffer full warnings in mjvScene`.

PiperOrigin-RevId: 896483023
Change-Id: I6dde2c20d8e8e229cf95e1f002dd10525d3376e6
This commit is contained in:
Yuval Tassa
2026-04-08 07:15:59 -07:00
committed by Copybara-Service
parent 5a2cc6cee3
commit 0e04436d51
17 changed files with 47 additions and 53 deletions
+2
View File
@@ -44,6 +44,8 @@ General
- The ``vertcollide`` field in :ref:`mjsFlex` has been removed. It is no longer required since
:doc:`MuJoCo Warp <mjwarp/index>` supports native flex collisions.
- The :ref:`mjtWarning` enum value ``mjWARN_VGEOMFULL`` is removed. Exhaustion of visual geoms is now handled
internally by the :ref:`mjvScene`.
Bug fixes
^^^^^^^^^
+3 -2
View File
@@ -63,7 +63,6 @@ typedef enum mjtWarning_ { // warning types
mjWARN_INERTIA = 0, // (near) singular inertia matrix
mjWARN_CONTACTFULL, // too many contacts in contact list
mjWARN_CNSTRFULL, // too many constraints
mjWARN_VGEOMFULL, // too many visual geoms
mjWARN_BADQPOS, // bad number in qpos
mjWARN_BADQVEL, // bad number in qvel
mjWARN_BADQACC, // bad number in qacc
@@ -3096,7 +3095,9 @@ struct mjvScene_ { // abstract scene passed to OpenGL renderer
// framing
int framewidth; // frame pixel width; 0: disable framing
float framergb[3]; // frame color
int status; // status; 0: ok, 1: geoms exhausted
// geom buffer status
int status; // 0: ok, 1: geoms exhausted, warning issued
};
typedef struct mjvScene_ mjvScene;
struct mjvFigure_ { // abstract 2D figure passed to OpenGL renderer