From 419cdf1ff3a1858acbfe3e574adf28d3de1c2cfd Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Sun, 22 Jun 2025 09:54:01 -0700 Subject: [PATCH] Add mesh fit image to XMLreference PiperOrigin-RevId: 774458193 Change-Id: I3bae60e431c628ccc4cb96f96cc7b045dc365698 --- doc/XMLreference.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/XMLreference.rst b/doc/XMLreference.rst index b36cd054..c2e47857 100644 --- a/doc/XMLreference.rst +++ b/doc/XMLreference.rst @@ -724,13 +724,20 @@ has any effect. The settings here are global and apply to the entire model. compiler converts degrees into radians, and mjModel always uses radians. For URDF models the parser sets this attribute to "radian" internally, regardless of the XML setting. +.. image:: images/changelog/meshfit.png + :align: right + :width: 40% + .. _compiler-fitaabb: :at:`fitaabb`: :at-val:`[false, true], "false"` The compiler is able to replace a mesh with a geometric primitive fitted to that mesh; see :ref:`geom ` below. If this attribute is "true", the fitting procedure uses the axis-aligned bounding box (aabb) of the mesh. Otherwise it uses the equivalent-inertia box of the mesh. The type of geometric primitive used for fitting is - specified separately for each geom. + specified separately for each geom. The models used to generate the image on the right can be found + `here `__ (fit inertia + box) and `here `__ (fit + aabb). .. _compiler-eulerseq: @@ -1230,7 +1237,7 @@ The full list of processing steps applied by the compiler to each mesh is as fol :at:`content_type`: :at-val:`string, optional` If the file attribute is specified, then this sets the - `Media Type `_ (formerly known as MIME type) of the + `Media Type `__ (formerly known as MIME type) of the file to be loaded. Any filename extensions will be overloaded. Currently ``model/vnd.mujoco.msh``, ``model/obj``, and ``model/stl`` are supported.