Files
Mujoco_WASM/test/user/testdata/fitmesh_aabb.xml
T
Alessio Quaglino 98682ae284 Do not modify mesh position when fitting a geom to the mesh AABB.
Also, unify the meaning of fitting a geom to an AABB: it now means to find the smallest geom such that its AABB contains the mesh AABB.

Fixes #2881.

PiperOrigin-RevId: 817097544
Change-Id: I883c686feffa803bd16ba461db24a474dfec7712
2025-10-09 03:05:00 -07:00

43 lines
1.3 KiB
XML

<mujoco>
<compiler fitaabb="true"/>
<asset>
<mesh file="stanford_bunny.obj"/>
</asset>
<worldbody>
<body euler="90 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".25 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".5 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".75 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos="1 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0">
<geom name="bunny_sphere" type="sphere" mesh="stanford_bunny" rgba="1 0 1 .5"/>
</body>
<body euler="90 0 0" pos=".25 0 0">
<geom name="bunny_capsule" type="capsule" mesh="stanford_bunny" rgba="1 0 1 .5"/>
</body>
<body euler="90 0 0" pos=".5 0 0">
<geom name="bunny_ellipsoid" type="ellipsoid" mesh="stanford_bunny" rgba="1 0 1 .5"/>
</body>
<body euler="90 0 0" pos=".75 0 0">
<geom name="bunny_cylinder" type="cylinder" mesh="stanford_bunny" rgba="1 0 1 .5"/>
</body>
<body euler="90 0 0" pos="1 0 0">
<geom name="bunny_box" type="box" mesh="stanford_bunny" rgba="1 0 1 .5"/>
</body>
<light name="left" pos="0 0 1"/>
<light name="right" pos="1 0 1"/>
</worldbody>
</mujoco>