From 66d764a1169bd3c389618f56d2f663246149ec8d Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Sun, 17 May 2026 14:32:43 -0700 Subject: [PATCH] Scale flex warp constraint by thickness^3. Warp is not a true stretch mode but a parasitic shear mode so it should be scaled like bending (~thickness^3) rather than stretching (~thickness). The thickness parameter can therefore be used to set the stretch to warp stiffness ratio of the strain constraints. PiperOrigin-RevId: 916900311 Change-Id: I52e54210fbb2a6d309abc1f084934830adce3423 --- model/flex/hollow_vs_solid.xml | 2 +- src/user/user_mesh.cc | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/model/flex/hollow_vs_solid.xml b/model/flex/hollow_vs_solid.xml index 0fc1e1fc..e9ac9d8a 100644 --- a/model/flex/hollow_vs_solid.xml +++ b/model/flex/hollow_vs_solid.xml @@ -50,7 +50,7 @@ origin="0 0 0" count="8 2 12" cellcount="6 1 6" type="grid" name="soft_mesh_2" dim="3" spacing=".025 .05 .025" mass="0.43" radius="0.005" dof="trilinear" rgba="0.9 0.7 0.7 1"> - + 0) {