Skip to content

Commit ee6f483

Browse files
quaglacopybara-github
authored andcommitted
Auto-generate 3D mesh from convex OBJ if dim=3 in flex.
This requires the user to explicitly specify an origin. PiperOrigin-RevId: 712483526 Change-Id: Ie316a5eccb676bb918d4bb746795019145c10f5b
1 parent 65048d6 commit ee6f483

File tree

8 files changed

+747
-22
lines changed

8 files changed

+747
-22
lines changed

doc/XMLreference.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3632,6 +3632,13 @@ saving the XML:
36323632
These attributes are directly passed through to the automatically-generated :ref:`flex<deformable-flex>` object and
36333633
have the same meaning.
36343634

3635+
.. _body-flexcomp-origin:
3636+
3637+
:at:`origin`: :at-val:`real(3), "0 0 0"`
3638+
The origin of the flexcomp. Used for generating a volumetric mesh from an OBJ surface mesh. Each surface triangle is
3639+
connected to the origin to create a tetrahedron, so the resulting volumetric mesh is guaranteed to be well-formed
3640+
only for convex shapes.
3641+
36353642
.. _flexcomp-contact:
36363643

36373644
:el-prefix:`flexcomp/` |-| **contact** (*)

doc/XMLschema.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@
445445
| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ |
446446
| | | | :ref:`axisangle<body-flexcomp-axisangle>` | :ref:`xyaxes<body-flexcomp-xyaxes>` | :ref:`zaxis<body-flexcomp-zaxis>` | :ref:`euler<body-flexcomp-euler>` | |
447447
| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ |
448+
| | | | :ref:`origin<body-flexcomp-origin>` | | | | |
449+
| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ |
448450
+------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
449451
| |_2| flexcomp |br| |_2| |L| | | .. table:: |
450452
| :ref:`edge | ? | :class: mjcf-attributes |

0 commit comments

Comments
 (0)