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
This commit is contained in:
committed by
Copybara-Service
parent
3a299c49ca
commit
98682ae284
Vendored
+5
-5
@@ -22,19 +22,19 @@
|
||||
<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 1"/>
|
||||
<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 1"/>
|
||||
<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 1"/>
|
||||
<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 1"/>
|
||||
<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 1"/>
|
||||
<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"/>
|
||||
|
||||
Reference in New Issue
Block a user