Fix figure IK snapping and gate the library on a fail-hard motion checker
Three solver defects made limbs teleport, twist, or windmill: write-back angles wrapped at ±180 and lerped the long way around; branch flips landed on configurations the anatomical write-back cannot represent, silently pulling pinned extremities off their pins; and the degenerate straight-limb bend plane fell back to the camera axis instead of the anatomical anterior. solve_limb now verifies each branch reproduces the solved end before accepting it, resolve unwraps written-back angles toward the pose they replace, and the degenerate plane comes from the parent's anterior axis. render.py --check replays every exercise's full tween loop and fails hard on six invariants (pin fidelity, continuity, wraps, authored-vs-resolved drift, ground penetration, resolved ROM); --export refuses to ship a failing exercise. All 66 motions re-authored or retouched to pass: honest authored angles where pins used to override them silently, grounded feet on the seated machines, a vertical bench-press bar path, straight-armed child's pose, a butterfly stretch seated on the mat, and FK arms where pins forced impossible reaches. MotionSolver.swift mirrors the solver changes line for line, held by regenerated fixtures. Claude-Session: https://claude.ai/code/session_01PKptrgbx74peTwHGRxBojv
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Tricep Press</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="123.9" y1="124.8" x2="168.0" y2="111.8"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#979da8"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-1" gradientUnits="userSpaceOnUse" x1="168.0" y1="111.8" x2="160.0" y2="150.4"><stop offset="0" stop-color="#979da8"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="162.3" y1="112.9" x2="156.0" y2="151.8"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#3b404c"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="156.0" y1="151.8" x2="166.9" y2="153.5"><stop offset="0" stop-color="#3b404c"/><stop offset="1" stop-color="#3f4450"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="123.9" y1="124.8" x2="167.7" y2="110.7"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#959ba6"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-1" gradientUnits="userSpaceOnUse" x1="167.7" y1="110.7" x2="160.0" y2="149.4"><stop offset="0" stop-color="#959ba6"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="162.3" y1="112.9" x2="156.0" y2="151.8"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#3c414d"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="156.0" y1="151.8" x2="166.9" y2="153.5"><stop offset="0" stop-color="#3c414d"/><stop offset="1" stop-color="#404551"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 82.7 160.7 L 182.8 160.7 L 182.8 150.3 L 82.7 150.3 Z" fill="none" stroke="#b9bec9" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="M 116.0 134.0 L 92.0 42.0 L 92.0 42.0 L 116.0 134.0 Z" fill="#c5cad4" stroke="#c5cad4" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
@@ -12,9 +12,9 @@
|
||||
<path d="M 124.0 137.0 L 124.0 151.0" stroke="#c5cad4" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M 110.0 151.0 L 140.0 151.0 L 140.0 151.0 L 110.0 151.0 Z" fill="#c5cad4" stroke="#c5cad4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 123.9 124.8 L 168.0 111.8" stroke="url(#grad-leg_l-0)" stroke-width="5.08211" stroke-linecap="round"/>
|
||||
<path d="M 168.0 111.8 L 160.0 150.4" stroke="url(#grad-leg_l-1)" stroke-width="5.08211" stroke-linecap="round"/>
|
||||
<path d="M 160.0 150.4 L 170.8 152.6" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 123.9 124.8 L 167.7 110.7" stroke="url(#grad-leg_l-0)" stroke-width="5.08916" stroke-linecap="round"/>
|
||||
<path d="M 167.7 110.7 L 160.0 149.4" stroke="url(#grad-leg_l-1)" stroke-width="5.08916" stroke-linecap="round"/>
|
||||
<path d="M 160.0 149.4 L 170.8 151.5" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 110.6 41.4 L 98.5 68.4" stroke="#86cfc5" stroke-width="5" stroke-linecap="round"/>
|
||||
@@ -25,8 +25,8 @@
|
||||
<path id="spine" d="M 118.0 124.0 Q 109.7 81.9 104.7 41.3" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_r">
|
||||
<path d="M 118.0 125.2 L 162.3 112.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 162.3 112.9 L 156.0 151.8" stroke="url(#grad-leg_r-1)" stroke-width="5.99389" stroke-linecap="round"/>
|
||||
<path d="M 156.0 151.8 L 166.9 153.5" stroke="url(#grad-leg_r-2)" stroke-width="5.9697" stroke-linecap="round"/>
|
||||
<path d="M 162.3 112.9 L 156.0 151.8" stroke="url(#grad-leg_r-1)" stroke-width="5.98975" stroke-linecap="round"/>
|
||||
<path d="M 156.0 151.8 L 166.9 153.5" stroke="url(#grad-leg_r-2)" stroke-width="5.96141" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_r">
|
||||
<path d="M 104.7 43.2 L 94.7 71.1" stroke="#0d9488" stroke-width="6" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,11 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Tricep Press</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="123.9" y1="124.8" x2="168.0" y2="111.8"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#979da8"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-1" gradientUnits="userSpaceOnUse" x1="168.0" y1="111.8" x2="160.0" y2="150.4"><stop offset="0" stop-color="#979da8"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="123.9" y1="124.8" x2="167.7" y2="110.7"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#959ba6"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-1" gradientUnits="userSpaceOnUse" x1="167.7" y1="110.7" x2="160.0" y2="149.4"><stop offset="0" stop-color="#959ba6"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="110.6" y1="41.4" x2="113.2" y2="70.8"><stop offset="0" stop-color="#80ccc2"/><stop offset="1" stop-color="#86cfc5"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="162.3" y1="112.9" x2="156.0" y2="151.8"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#3b404c"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="156.0" y1="151.8" x2="166.9" y2="153.5"><stop offset="0" stop-color="#3b404c"/><stop offset="1" stop-color="#3f4450"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="162.3" y1="112.9" x2="156.0" y2="151.8"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#3c414d"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="156.0" y1="151.8" x2="166.9" y2="153.5"><stop offset="0" stop-color="#3c414d"/><stop offset="1" stop-color="#404551"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="109.7" y1="72.4" x2="124.0" y2="98.3"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#11968a"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 82.7 160.7 L 182.8 160.7 L 182.8 150.3 L 82.7 150.3 Z" fill="none" stroke="#b9bec9" stroke-width="3" stroke-linejoin="round"/>
|
||||
@@ -14,9 +14,9 @@
|
||||
<path d="M 124.0 137.0 L 124.0 151.0" stroke="#c5cad4" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M 110.0 151.0 L 140.0 151.0 L 140.0 151.0 L 110.0 151.0 Z" fill="#c5cad4" stroke="#c5cad4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 123.9 124.8 L 168.0 111.8" stroke="url(#grad-leg_l-0)" stroke-width="5.08211" stroke-linecap="round"/>
|
||||
<path d="M 168.0 111.8 L 160.0 150.4" stroke="url(#grad-leg_l-1)" stroke-width="5.08211" stroke-linecap="round"/>
|
||||
<path d="M 160.0 150.4 L 170.8 152.6" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 123.9 124.8 L 167.7 110.7" stroke="url(#grad-leg_l-0)" stroke-width="5.08916" stroke-linecap="round"/>
|
||||
<path d="M 167.7 110.7 L 160.0 149.4" stroke="url(#grad-leg_l-1)" stroke-width="5.08916" stroke-linecap="round"/>
|
||||
<path d="M 160.0 149.4 L 170.8 151.5" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 110.6 41.4 L 113.2 70.8" stroke="url(#grad-arm_l-0)" stroke-width="5.02411" stroke-linecap="round"/>
|
||||
@@ -27,8 +27,8 @@
|
||||
<path id="spine" d="M 118.0 124.0 Q 109.7 81.9 104.7 41.3" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_r">
|
||||
<path d="M 118.0 125.2 L 162.3 112.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 162.3 112.9 L 156.0 151.8" stroke="url(#grad-leg_r-1)" stroke-width="5.99389" stroke-linecap="round"/>
|
||||
<path d="M 156.0 151.8 L 166.9 153.5" stroke="url(#grad-leg_r-2)" stroke-width="5.9697" stroke-linecap="round"/>
|
||||
<path d="M 162.3 112.9 L 156.0 151.8" stroke="url(#grad-leg_r-1)" stroke-width="5.98975" stroke-linecap="round"/>
|
||||
<path d="M 156.0 151.8 L 166.9 153.5" stroke="url(#grad-leg_r-2)" stroke-width="5.96141" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_r">
|
||||
<path d="M 104.7 43.2 L 109.7 72.4" stroke="#0d9488" stroke-width="6" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Reference in New Issue
Block a user