@automovie/engine 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/IAutoMovieFormationPlacement.d.ts +4 -3
- package/lib/analysis/index.d.ts +5 -0
- package/lib/analysis/index.js +5 -0
- package/lib/analysis/index.js.map +1 -1
- package/lib/anthropometry/AutoMovieHandAnthropometry.d.ts +47 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js +53 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js.map +1 -0
- package/lib/anthropometry/index.d.ts +1 -0
- package/lib/anthropometry/index.js +18 -0
- package/lib/anthropometry/index.js.map +1 -0
- package/lib/architecture/appendBuiltRegionDefects.d.ts +1 -1
- package/lib/architecture/appendBuiltRegionDefects.js +3 -3
- package/lib/architecture/appendBuiltRegionDefects.js.map +1 -1
- package/lib/architecture/builtOutlineIsClosed.d.ts +1 -1
- package/lib/architecture/builtOutlineIsClosed.js +3 -3
- package/lib/architecture/builtOutlineIsClosed.js.map +1 -1
- package/{src/architecture/constants/PLANAR_EPSILON.ts → lib/architecture/constants/BUILT_PLANAR_EPSILON.d.ts} +1 -1
- package/lib/architecture/constants/{PLANAR_EPSILON.js → BUILT_PLANAR_EPSILON.js} +3 -3
- package/lib/architecture/constants/BUILT_PLANAR_EPSILON.js.map +1 -0
- package/lib/architecture/constants/index.d.ts +1 -1
- package/lib/architecture/constants/index.js +1 -1
- package/lib/architecture/constants/index.js.map +1 -1
- package/lib/architecture/index.d.ts +157 -117
- package/lib/architecture/index.js +171 -158
- package/lib/architecture/index.js.map +1 -1
- package/lib/cache/index.d.ts +9 -0
- package/lib/cache/index.js +26 -0
- package/lib/cache/index.js.map +1 -0
- package/lib/composition/AutoMovieComposition.d.ts +25 -6
- package/lib/composition/AutoMovieComposition.js +4 -3
- package/lib/composition/AutoMovieComposition.js.map +1 -1
- package/lib/composition/AutoMovieScheduleCut.d.ts +53 -0
- package/lib/composition/AutoMovieScheduleCut.js +99 -0
- package/lib/composition/AutoMovieScheduleCut.js.map +1 -0
- package/lib/composition/AutoMovieScheduleError.d.ts +79 -0
- package/lib/composition/AutoMovieScheduleError.js +51 -0
- package/lib/composition/AutoMovieScheduleError.js.map +1 -0
- package/lib/composition/AutoMovieSchedulePlace.d.ts +56 -0
- package/lib/composition/AutoMovieSchedulePlace.js +185 -0
- package/lib/composition/AutoMovieSchedulePlace.js.map +1 -0
- package/lib/composition/AutoMovieScheduleWalk.d.ts +121 -0
- package/lib/composition/AutoMovieScheduleWalk.js +161 -0
- package/lib/composition/AutoMovieScheduleWalk.js.map +1 -0
- package/lib/composition/IAutoMovieIntent.d.ts +9 -6
- package/lib/composition/index.d.ts +12 -7
- package/lib/composition/index.js +12 -2
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/markAutoMovieContacts.d.ts +29 -0
- package/lib/composition/markAutoMovieContacts.js +69 -0
- package/lib/composition/markAutoMovieContacts.js.map +1 -0
- package/lib/composition/resolveAutoMovieContactEvents.d.ts +56 -7
- package/lib/composition/resolveAutoMovieContactEvents.js +89 -18
- package/lib/composition/resolveAutoMovieContactEvents.js.map +1 -1
- package/lib/composition/resolveAutoMovieMutualGoal.d.ts +45 -29
- package/lib/composition/resolveAutoMovieMutualGoal.js +123 -60
- package/lib/composition/resolveAutoMovieMutualGoal.js.map +1 -1
- package/lib/composition/resolveAutoMovieSchedule.d.ts +69 -11
- package/lib/composition/resolveAutoMovieSchedule.js +32 -103
- package/lib/composition/resolveAutoMovieSchedule.js.map +1 -1
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/createAutoMovieGeometryActorReader.js +2 -1
- package/lib/createAutoMovieGeometryActorReader.js.map +1 -1
- package/lib/describeAutoMovieInstanceSetSubject.js +2 -5
- package/lib/describeAutoMovieInstanceSetSubject.js.map +1 -1
- package/lib/drawing/index.d.ts +12 -0
- package/lib/drawing/index.js +12 -0
- package/lib/drawing/index.js.map +1 -1
- package/lib/effectRuntime/index.d.ts +7 -0
- package/lib/effectRuntime/index.js +7 -0
- package/lib/effectRuntime/index.js.map +1 -1
- package/lib/film/compileAttach.js +2 -5
- package/lib/film/compileAttach.js.map +1 -1
- package/lib/film/compileLaunch.d.ts +2 -2
- package/lib/film/compileLaunch.js +4 -3
- package/lib/film/compileLaunch.js.map +1 -1
- package/lib/film/constants/index.d.ts +3 -0
- package/lib/film/constants/index.js +3 -0
- package/lib/film/constants/index.js.map +1 -1
- package/lib/film/index.d.ts +61 -6
- package/lib/film/index.js +61 -12
- package/lib/film/index.js.map +1 -1
- package/lib/film/propAnchorFrame.js +6 -9
- package/lib/film/propAnchorFrame.js.map +1 -1
- package/lib/film/stageScene.js +3 -10
- package/lib/film/stageScene.js.map +1 -1
- package/lib/film/staging/index.d.ts +11 -0
- package/lib/film/staging/index.js +28 -0
- package/lib/film/staging/index.js.map +1 -0
- package/lib/film/staging/lowerLightPlacement.js +4 -7
- package/lib/film/staging/lowerLightPlacement.js.map +1 -1
- package/lib/formationSlotPosition.d.ts +6 -1
- package/lib/formationSlotPosition.js +38 -3
- package/lib/formationSlotPosition.js.map +1 -1
- package/lib/geometry/IAutoMovieMark.d.ts +99 -0
- package/lib/geometry/IAutoMovieMark.js +3 -0
- package/lib/geometry/IAutoMovieMark.js.map +1 -0
- package/lib/geometry/IAutoMovieMeshDefect.d.ts +33 -0
- package/lib/geometry/IAutoMovieMeshDefect.js +3 -0
- package/lib/geometry/IAutoMovieMeshDefect.js.map +1 -0
- package/lib/geometry/constants/index.d.ts +2 -0
- package/lib/geometry/constants/index.js +2 -0
- package/lib/geometry/constants/index.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js +72 -10
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.d.ts +35 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js +155 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js.map +1 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js +4 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js +38 -14
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSeeds.d.ts +6 -6
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js +34 -11
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.d.ts +107 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js +452 -16
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js +262 -0
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.d.ts +28 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js +51 -12
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionState.d.ts +11 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js +5 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapRead.js +3 -2
- package/lib/geometry/construction/AutoMovieLoftCapRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js +21 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftJet.js +7 -5
- package/lib/geometry/construction/AutoMovieLoftJet.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftPoint.js +7 -4
- package/lib/geometry/construction/AutoMovieLoftPoint.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftRelief.d.ts +25 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js +37 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewRead.js +29 -7
- package/lib/geometry/construction/AutoMovieLoftViewRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewSource.js +4 -2
- package/lib/geometry/construction/AutoMovieLoftViewSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieNaturalSpline.d.ts +20 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js +37 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.d.ts +9 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js +13 -8
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js +2 -0
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidClip.d.ts +15 -1
- package/lib/geometry/construction/AutoMovieSolidClip.js +306 -38
- package/lib/geometry/construction/AutoMovieSolidClip.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidCycle.d.ts +20 -5
- package/lib/geometry/construction/AutoMovieSolidCycle.js +68 -16
- package/lib/geometry/construction/AutoMovieSolidCycle.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js +89 -41
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidJoin.d.ts +13 -0
- package/lib/geometry/construction/AutoMovieSolidJoin.js +23 -2
- package/lib/geometry/construction/AutoMovieSolidJoin.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js +28 -3
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.d.ts +4 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js +42 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.d.ts +2 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js +57 -25
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRail.d.ts +40 -0
- package/lib/geometry/construction/AutoMovieSolidRail.js +101 -31
- package/lib/geometry/construction/AutoMovieSolidRail.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRailSolve.d.ts +7 -3
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js +115 -18
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js.map +1 -1
- package/lib/geometry/construction/AutoMovieViewLoft.js +9 -0
- package/lib/geometry/construction/AutoMovieViewLoft.js.map +1 -1
- package/lib/geometry/construction/IAutoMovieConstructionCurve.d.ts +37 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js +3 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js.map +1 -0
- package/lib/geometry/construction/IAutoMovieLoftChain.d.ts +6 -0
- package/lib/geometry/construction/IAutoMovieLoftRelief.d.ts +10 -0
- package/lib/geometry/construction/IAutoMovieViewPart.d.ts +9 -1
- package/lib/geometry/construction/faceAutoMovieSolidMesh.d.ts +3 -3
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js +65 -16
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/fairAutoMovieSolidMesh.d.ts +45 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js +270 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js.map +1 -0
- package/lib/geometry/construction/gridAutoMovieSolidMesh.d.ts +18 -1
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js +139 -7
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/index.d.ts +82 -2
- package/lib/geometry/construction/index.js +82 -2
- package/lib/geometry/construction/index.js.map +1 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.d.ts +14 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js +26 -4
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/markAutoMovieConstructionCurves.d.ts +33 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js +51 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/construction/orientAutoMovieSolidChart.d.ts +1 -1
- package/lib/geometry/construction/orientAutoMovieSolidChart.js +28 -4
- package/lib/geometry/construction/orientAutoMovieSolidChart.js.map +1 -1
- package/lib/geometry/construction/probeAutoMovieSolidMesh.d.ts +11 -5
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js +41 -28
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js +45 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js.map +1 -1
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.d.ts +31 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js +234 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/curve/index.d.ts +48 -25
- package/lib/geometry/curve/index.js +48 -25
- package/lib/geometry/curve/index.js.map +1 -1
- package/lib/geometry/extract/index.d.ts +0 -1
- package/lib/geometry/extract/index.js +0 -1
- package/lib/geometry/extract/index.js.map +1 -1
- package/lib/geometry/index.d.ts +87 -53
- package/lib/geometry/index.js +87 -50
- package/lib/geometry/index.js.map +1 -1
- package/lib/geometry/markAutoMovieMeshClearance.d.ts +32 -0
- package/lib/geometry/markAutoMovieMeshClearance.js +53 -0
- package/lib/geometry/markAutoMovieMeshClearance.js.map +1 -0
- package/lib/geometry/measureAutoMovieMeshDefects.d.ts +31 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js +244 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js.map +1 -0
- package/lib/geometry/sweep/index.d.ts +54 -15
- package/lib/geometry/sweep/index.js +54 -1
- package/lib/geometry/sweep/index.js.map +1 -1
- package/lib/index.d.ts +41 -450
- package/lib/index.js +41 -660
- package/lib/index.js.map +1 -1
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.d.ts +36 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js +67 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.d.ts +28 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js +52 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.d.ts +55 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js +191 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.d.ts +49 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js +147 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js.map +1 -0
- package/lib/kinematics/IAutoMovieHingedArticulation.d.ts +17 -3
- package/lib/kinematics/IAutoMoviePoseRig.d.ts +31 -0
- package/lib/kinematics/IAutoMoviePoseRig.js +3 -0
- package/lib/kinematics/IAutoMoviePoseRig.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelNear.d.ts +25 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.d.ts +18 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js.map +1 -0
- package/lib/kinematics/alternateRigJointAngles.d.ts +27 -0
- package/lib/kinematics/alternateRigJointAngles.js +34 -0
- package/lib/kinematics/alternateRigJointAngles.js.map +1 -0
- package/lib/kinematics/boxExcludedSwivels.d.ts +64 -0
- package/lib/kinematics/boxExcludedSwivels.js +187 -0
- package/lib/kinematics/boxExcludedSwivels.js.map +1 -0
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.d.ts +16 -2
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js +19 -4
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js.map +1 -1
- package/lib/kinematics/curlChainUntilContact.d.ts +16 -0
- package/lib/kinematics/curlChainUntilContact.js +45 -5
- package/lib/kinematics/curlChainUntilContact.js.map +1 -1
- package/lib/kinematics/decomposeJointRotation.d.ts +5 -2
- package/lib/kinematics/decomposeJointRotation.js +10 -131
- package/lib/kinematics/decomposeJointRotation.js.map +1 -1
- package/lib/kinematics/decomposeJointRotationOnBasis.d.ts +36 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js +228 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js.map +1 -0
- package/lib/kinematics/fitDigitDescent.d.ts +66 -0
- package/lib/kinematics/fitDigitDescent.js +142 -0
- package/lib/kinematics/fitDigitDescent.js.map +1 -0
- package/lib/kinematics/fitDigitToTarget.d.ts +125 -0
- package/lib/kinematics/fitDigitToTarget.js +251 -0
- package/lib/kinematics/fitDigitToTarget.js.map +1 -0
- package/lib/kinematics/hingedArmArticulation.d.ts +55 -7
- package/lib/kinematics/hingedArmArticulation.js +273 -84
- package/lib/kinematics/hingedArmArticulation.js.map +1 -1
- package/lib/kinematics/hingedArmSwivel.d.ts +141 -0
- package/lib/kinematics/hingedArmSwivel.js +196 -0
- package/lib/kinematics/hingedArmSwivel.js.map +1 -0
- package/lib/kinematics/index.d.ts +30 -7
- package/lib/kinematics/index.js +30 -5
- package/lib/kinematics/index.js.map +1 -1
- package/lib/kinematics/jointRomOvershoot.d.ts +13 -9
- package/lib/kinematics/jointRomOvershoot.js +21 -17
- package/lib/kinematics/jointRomOvershoot.js.map +1 -1
- package/lib/kinematics/jointToQuaternion.d.ts +2 -2
- package/lib/kinematics/jointToQuaternion.js +4 -19
- package/lib/kinematics/jointToQuaternion.js.map +1 -1
- package/lib/kinematics/jointToQuaternionOnBasis.d.ts +34 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js +50 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js.map +1 -0
- package/lib/kinematics/markAutoMovieBalance.d.ts +32 -0
- package/lib/kinematics/markAutoMovieBalance.js +65 -0
- package/lib/kinematics/markAutoMovieBalance.js.map +1 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.d.ts +25 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js +43 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js.map +1 -0
- package/lib/kinematics/measureAutoMovieHumanoidBody.js +16 -5
- package/lib/kinematics/measureAutoMovieHumanoidBody.js.map +1 -1
- package/lib/kinematics/normalizeJointAxes.d.ts +15 -7
- package/lib/kinematics/normalizeJointAxes.js +52 -12
- package/lib/kinematics/normalizeJointAxes.js.map +1 -1
- package/lib/kinematics/poseJointCodec.d.ts +71 -0
- package/lib/kinematics/poseJointCodec.js +70 -0
- package/lib/kinematics/poseJointCodec.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js +168 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieCenterOfMass.d.ts +29 -4
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js +42 -8
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.d.ts +75 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js +228 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.d.ts +90 -10
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js +183 -258
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieMomentum.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js +153 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js.map +1 -0
- package/lib/kinematics/swingTwistBasis.d.ts +108 -0
- package/lib/kinematics/swingTwistBasis.js +116 -0
- package/lib/kinematics/swingTwistBasis.js.map +1 -0
- package/lib/kinematics/swingTwistExcludedSwivels.d.ts +65 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js +138 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js.map +1 -0
- package/lib/kinematics/swingTwistRange.d.ts +246 -0
- package/lib/kinematics/swingTwistRange.js +322 -0
- package/lib/kinematics/swingTwistRange.js.map +1 -0
- package/lib/kinematics/swingTwistRegion.d.ts +50 -0
- package/lib/kinematics/swingTwistRegion.js +212 -0
- package/lib/kinematics/swingTwistRegion.js.map +1 -0
- package/lib/kinematics/swivelArcs.d.ts +166 -0
- package/lib/kinematics/swivelArcs.js +200 -0
- package/lib/kinematics/swivelArcs.js.map +1 -0
- package/lib/math/Quaternion.d.ts +29 -2
- package/lib/math/Quaternion.js +33 -2
- package/lib/math/Quaternion.js.map +1 -1
- package/lib/math/Transform.d.ts +50 -0
- package/lib/math/Transform.js +58 -0
- package/lib/math/Transform.js.map +1 -0
- package/lib/math/assignAutoMovieMinimumCost.d.ts +18 -0
- package/lib/math/assignAutoMovieMinimumCost.js +86 -0
- package/lib/math/assignAutoMovieMinimumCost.js.map +1 -0
- package/lib/math/bracketedBisection.d.ts +33 -0
- package/lib/math/bracketedBisection.js +52 -0
- package/lib/math/bracketedBisection.js.map +1 -0
- package/lib/math/bracketedRoot.d.ts +32 -0
- package/lib/math/bracketedRoot.js +76 -0
- package/lib/math/bracketedRoot.js.map +1 -0
- package/lib/math/constants/index.d.ts +1 -0
- package/lib/math/constants/index.js +18 -0
- package/lib/math/constants/index.js.map +1 -0
- package/lib/math/index.d.ts +64 -5
- package/lib/math/index.js +64 -5
- package/lib/math/index.js.map +1 -1
- package/lib/math/nearestAngleAlias.d.ts +27 -0
- package/lib/math/nearestAngleAlias.js +44 -0
- package/lib/math/nearestAngleAlias.js.map +1 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.d.ts +68 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js +199 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js.map +1 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.d.ts +82 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js +187 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js.map +1 -0
- package/lib/measureAutoMovieGeometryReach.js +2 -4
- package/lib/measureAutoMovieGeometryReach.js.map +1 -1
- package/lib/motion/AirborneTakeoffLinear.d.ts +22 -0
- package/lib/motion/AirborneTakeoffLinear.js +58 -0
- package/lib/motion/AirborneTakeoffLinear.js.map +1 -0
- package/lib/motion/IAutoMovieCrowdAgent.d.ts +113 -0
- package/lib/motion/IAutoMovieCrowdAgent.js +3 -0
- package/lib/motion/IAutoMovieCrowdAgent.js.map +1 -0
- package/lib/motion/IAutoMovieSeededChainFit.d.ts +32 -0
- package/lib/motion/IAutoMovieSeededChainFit.js +3 -0
- package/lib/motion/IAutoMovieSeededChainFit.js.map +1 -0
- package/lib/motion/IAutoMovieSolvedChainPlant.d.ts +20 -0
- package/lib/motion/IFitChainToTargetProps.d.ts +59 -0
- package/lib/motion/MotionTrajectoryStepper.d.ts +100 -0
- package/lib/motion/MotionTrajectoryStepper.js +357 -0
- package/lib/motion/MotionTrajectoryStepper.js.map +1 -0
- package/lib/motion/basisOf.d.ts +18 -0
- package/lib/motion/basisOf.js +25 -0
- package/lib/motion/basisOf.js.map +1 -0
- package/lib/motion/carriedAcceleration.d.ts +43 -0
- package/lib/motion/carriedAcceleration.js +55 -0
- package/lib/motion/carriedAcceleration.js.map +1 -0
- package/lib/motion/carriedRate.d.ts +48 -0
- package/lib/motion/carriedRate.js +60 -0
- package/lib/motion/carriedRate.js.map +1 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.d.ts +10 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js +14 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js.map +1 -0
- package/lib/motion/constants/index.d.ts +1 -0
- package/lib/motion/constants/index.js +1 -0
- package/lib/motion/constants/index.js.map +1 -1
- package/lib/motion/fitChainBend.d.ts +23 -0
- package/lib/motion/fitChainBend.js +293 -0
- package/lib/motion/fitChainBend.js.map +1 -0
- package/lib/motion/fitChainToTarget.d.ts +11 -13
- package/lib/motion/fitChainToTarget.js +12 -283
- package/lib/motion/fitChainToTarget.js.map +1 -1
- package/lib/motion/fitHingedChainCandidate.d.ts +16 -4
- package/lib/motion/fitHingedChainCandidate.js +186 -76
- package/lib/motion/fitHingedChainCandidate.js.map +1 -1
- package/lib/motion/fitHingedRotationError.d.ts +31 -0
- package/lib/motion/fitHingedRotationError.js +107 -0
- package/lib/motion/fitHingedRotationError.js.map +1 -0
- package/lib/motion/fitSeededChainToTarget.d.ts +20 -0
- package/lib/motion/fitSeededChainToTarget.js +32 -0
- package/lib/motion/fitSeededChainToTarget.js.map +1 -0
- package/lib/motion/gaitMotion.js +7 -13
- package/lib/motion/gaitMotion.js.map +1 -1
- package/lib/motion/gestureMotion.js +2 -5
- package/lib/motion/gestureMotion.js.map +1 -1
- package/lib/motion/importedNodeClipToAutoMovieMotion.js +6 -9
- package/lib/motion/importedNodeClipToAutoMovieMotion.js.map +1 -1
- package/lib/motion/index.d.ts +40 -9
- package/lib/motion/index.js +40 -12
- package/lib/motion/index.js.map +1 -1
- package/lib/motion/inertializeOffset.d.ts +15 -2
- package/lib/motion/inertializeOffset.js +16 -3
- package/lib/motion/inertializeOffset.js.map +1 -1
- package/lib/motion/inertializePose.d.ts +36 -13
- package/lib/motion/inertializePose.js +122 -43
- package/lib/motion/inertializePose.js.map +1 -1
- package/lib/motion/integrateAirborneRotation.d.ts +151 -0
- package/lib/motion/integrateAirborneRotation.js +204 -0
- package/lib/motion/integrateAirborneRotation.js.map +1 -0
- package/lib/motion/integrateMotionTrajectory.d.ts +117 -0
- package/lib/motion/integrateMotionTrajectory.js +156 -0
- package/lib/motion/integrateMotionTrajectory.js.map +1 -0
- package/lib/motion/orientChainEffector.d.ts +1 -1
- package/lib/motion/orientChainEffector.js +15 -7
- package/lib/motion/orientChainEffector.js.map +1 -1
- package/lib/motion/resolveHydrodynamicForce.d.ts +85 -0
- package/lib/motion/resolveHydrodynamicForce.js +100 -0
- package/lib/motion/resolveHydrodynamicForce.js.map +1 -0
- package/lib/motion/sampleMotion.js +2 -5
- package/lib/motion/sampleMotion.js.map +1 -1
- package/lib/motion/samplePoseVelocity.d.ts +76 -13
- package/lib/motion/samplePoseVelocity.js +126 -38
- package/lib/motion/samplePoseVelocity.js.map +1 -1
- package/lib/motion/smoothMinimum.d.ts +29 -0
- package/lib/motion/smoothMinimum.js +40 -0
- package/lib/motion/smoothMinimum.js.map +1 -0
- package/lib/motion/solveAirborneTakeoff.d.ts +150 -0
- package/lib/motion/solveAirborneTakeoff.js +324 -0
- package/lib/motion/solveAirborneTakeoff.js.map +1 -0
- package/lib/motion/solveDistalTwist.d.ts +62 -0
- package/lib/motion/solveDistalTwist.js +152 -0
- package/lib/motion/solveDistalTwist.js.map +1 -0
- package/lib/motion/speedProfile.d.ts +175 -0
- package/lib/motion/speedProfile.js +261 -0
- package/lib/motion/speedProfile.js.map +1 -0
- package/lib/motion/splitDistalTwist.d.ts +12 -17
- package/lib/motion/splitDistalTwist.js +37 -40
- package/lib/motion/splitDistalTwist.js.map +1 -1
- package/lib/motion/steerAutoMovieCrowd.d.ts +74 -0
- package/lib/motion/steerAutoMovieCrowd.js +249 -0
- package/lib/motion/steerAutoMovieCrowd.js.map +1 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.d.ts +241 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js +470 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js.map +1 -0
- package/lib/perform/index.d.ts +10 -0
- package/lib/perform/index.js +10 -0
- package/lib/perform/index.js.map +1 -1
- package/lib/physics/AutoMovieAir.d.ts +21 -0
- package/lib/physics/AutoMovieAir.js +26 -0
- package/lib/physics/AutoMovieAir.js.map +1 -0
- package/lib/physics/AutoMovieGravity.d.ts +22 -0
- package/lib/physics/AutoMovieGravity.js +30 -0
- package/lib/physics/AutoMovieGravity.js.map +1 -0
- package/lib/physics/IAutoMovieHit.d.ts +11 -7
- package/lib/physics/IAutoMovieProjectile.d.ts +65 -6
- package/lib/physics/IAutoMovieProjectileState.d.ts +6 -4
- package/lib/physics/admitMotionGeometry.js +12 -0
- package/lib/physics/admitMotionGeometry.js.map +1 -1
- package/lib/physics/bindPhysicalWorld.js +16 -4
- package/lib/physics/bindPhysicalWorld.js.map +1 -1
- package/lib/physics/combinePhysicalMassProperties.d.ts +2 -1
- package/lib/physics/combinePhysicalMassProperties.js +8 -90
- package/lib/physics/combinePhysicalMassProperties.js.map +1 -1
- package/lib/physics/deriveCenterOfMass.js +2 -5
- package/lib/physics/deriveCenterOfMass.js.map +1 -1
- package/lib/physics/derivePhysicalProfile.js +7 -5
- package/lib/physics/derivePhysicalProfile.js.map +1 -1
- package/lib/physics/index.d.ts +155 -2
- package/lib/physics/index.js +155 -2
- package/lib/physics/index.js.map +1 -1
- package/lib/physics/markAutoMovieSkeleton.d.ts +33 -0
- package/lib/physics/markAutoMovieSkeleton.js +62 -0
- package/lib/physics/markAutoMovieSkeleton.js.map +1 -0
- package/lib/physics/physicalHullErode.d.ts +25 -0
- package/lib/physics/physicalHullErode.js +54 -0
- package/lib/physics/physicalHullErode.js.map +1 -0
- package/lib/physics/physicalHullFaces.d.ts +56 -0
- package/lib/physics/physicalHullFaces.js +151 -0
- package/lib/physics/physicalHullFaces.js.map +1 -0
- package/lib/physics/physicalHullMass.d.ts +32 -0
- package/lib/physics/physicalHullMass.js +80 -0
- package/lib/physics/physicalHullMass.js.map +1 -0
- package/lib/physics/physicalHullNearest.d.ts +37 -0
- package/lib/physics/physicalHullNearest.js +178 -0
- package/lib/physics/physicalHullNearest.js.map +1 -0
- package/lib/physics/physicalHullSegment.d.ts +34 -0
- package/lib/physics/physicalHullSegment.js +276 -0
- package/lib/physics/physicalHullSegment.js.map +1 -0
- package/lib/physics/physicalInertiaTensor.d.ts +28 -0
- package/lib/physics/physicalInertiaTensor.js +58 -0
- package/lib/physics/physicalInertiaTensor.js.map +1 -0
- package/lib/physics/physicalNativeShape.d.ts +1 -1
- package/lib/physics/physicalNativeShape.js +15 -4
- package/lib/physics/physicalNativeShape.js.map +1 -1
- package/lib/physics/physicalPrincipalAxes.d.ts +28 -0
- package/lib/physics/physicalPrincipalAxes.js +96 -0
- package/lib/physics/physicalPrincipalAxes.js.map +1 -0
- package/lib/physics/physicalShapeBounds.d.ts +2 -1
- package/lib/physics/physicalShapeBounds.js +26 -2
- package/lib/physics/physicalShapeBounds.js.map +1 -1
- package/lib/physics/physicalShapeNearest.d.ts +70 -0
- package/lib/physics/physicalShapeNearest.js +201 -0
- package/lib/physics/physicalShapeNearest.js.map +1 -0
- package/lib/physics/physicalShapeNormal.d.ts +26 -0
- package/lib/physics/physicalShapeNormal.js +70 -0
- package/lib/physics/physicalShapeNormal.js.map +1 -0
- package/lib/physics/physicalShapePairDistance.d.ts +32 -0
- package/lib/physics/physicalShapePairDistance.js +124 -0
- package/lib/physics/physicalShapePairDistance.js.map +1 -0
- package/lib/physics/physicalShapeSegmentDistance.d.ts +16 -20
- package/lib/physics/physicalShapeSegmentDistance.js +18 -70
- package/lib/physics/physicalShapeSegmentDistance.js.map +1 -1
- package/lib/physics/physicalShapeSpan.d.ts +21 -0
- package/lib/physics/physicalShapeSpan.js +55 -0
- package/lib/physics/physicalShapeSpan.js.map +1 -0
- package/lib/physics/physicalShapeSurfaceAnchor.d.ts +1 -1
- package/lib/physics/physicalShapeSurfaceAnchor.js +24 -5
- package/lib/physics/physicalShapeSurfaceAnchor.js.map +1 -1
- package/lib/physics/projectileAt.d.ts +14 -12
- package/lib/physics/projectileAt.js +46 -16
- package/lib/physics/projectileAt.js.map +1 -1
- package/lib/physics/projectileContinue.d.ts +114 -0
- package/lib/physics/projectileContinue.js +189 -0
- package/lib/physics/projectileContinue.js.map +1 -0
- package/lib/physics/projectileDragFlight.d.ts +72 -0
- package/lib/physics/projectileDragFlight.js +166 -0
- package/lib/physics/projectileDragFlight.js.map +1 -0
- package/lib/physics/projectileFirstContact.d.ts +105 -0
- package/lib/physics/projectileFirstContact.js +174 -0
- package/lib/physics/projectileFirstContact.js.map +1 -0
- package/lib/physics/projectileTrajectory.js +3 -2
- package/lib/physics/projectileTrajectory.js.map +1 -1
- package/lib/physics/solveBallisticLaunch.js +2 -1
- package/lib/physics/solveBallisticLaunch.js.map +1 -1
- package/lib/physics/solveMovingLaunch.js +2 -1
- package/lib/physics/solveMovingLaunch.js.map +1 -1
- package/lib/physics/validatePhysicalProfile.js +18 -1
- package/lib/physics/validatePhysicalProfile.js.map +1 -1
- package/lib/populationRuntime/index.d.ts +6 -0
- package/lib/populationRuntime/index.js +6 -0
- package/lib/populationRuntime/index.js.map +1 -1
- package/lib/populationRuntime/materializeCompiledFormation.js +2 -5
- package/lib/populationRuntime/materializeCompiledFormation.js.map +1 -1
- package/lib/random/index.d.ts +1 -1
- package/lib/random/index.js +1 -0
- package/lib/random/index.js.map +1 -1
- package/lib/render/index.d.ts +20 -11
- package/lib/render/index.js +20 -11
- package/lib/render/index.js.map +1 -1
- package/lib/resolve/index.d.ts +7 -2
- package/lib/resolve/index.js +7 -5
- package/lib/resolve/index.js.map +1 -1
- package/lib/resolve/lowerSkeletonNodes.js +3 -10
- package/lib/resolve/lowerSkeletonNodes.js.map +1 -1
- package/lib/rom/clampJointRom.d.ts +11 -3
- package/lib/rom/clampJointRom.js +43 -3
- package/lib/rom/clampJointRom.js.map +1 -1
- package/lib/rom/clampJointToSkeleton.d.ts +25 -2
- package/lib/rom/clampJointToSkeleton.js +39 -8
- package/lib/rom/clampJointToSkeleton.js.map +1 -1
- package/lib/rom/constants/ANKLE_DORSIFLEXION.d.ts +18 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js +22 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js.map +1 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.d.ts +28 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js +129 -39
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js.map +1 -1
- package/lib/rom/constants/ROM_TOLERANCE.d.ts +8 -0
- package/lib/rom/constants/ROM_TOLERANCE.js +12 -0
- package/lib/rom/constants/ROM_TOLERANCE.js.map +1 -0
- package/lib/rom/constants/index.d.ts +2 -0
- package/lib/rom/constants/index.js +2 -0
- package/lib/rom/constants/index.js.map +1 -1
- package/lib/rom/index.d.ts +1 -0
- package/lib/rom/index.js +1 -0
- package/lib/rom/index.js.map +1 -1
- package/lib/rom/scanJointRom.d.ts +62 -0
- package/lib/rom/scanJointRom.js +117 -0
- package/lib/rom/scanJointRom.js.map +1 -0
- package/lib/rom/validateJointRom.d.ts +4 -2
- package/lib/rom/validateJointRom.js +23 -45
- package/lib/rom/validateJointRom.js.map +1 -1
- package/lib/service/index.d.ts +9 -0
- package/lib/service/index.js +9 -0
- package/lib/service/index.js.map +1 -1
- package/lib/soft/IAutoMovieSoftBodyBoundarySample.d.ts +2 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.d.ts +30 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js +3 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js.map +1 -0
- package/lib/soft/applySoftBodyFriction.d.ts +34 -0
- package/lib/soft/applySoftBodyFriction.js +52 -0
- package/lib/soft/applySoftBodyFriction.js.map +1 -0
- package/lib/soft/index.d.ts +22 -0
- package/lib/soft/index.js +22 -0
- package/lib/soft/index.js.map +1 -1
- package/lib/soft/projectSoftCordSelfContact.d.ts +53 -0
- package/lib/soft/projectSoftCordSelfContact.js +172 -0
- package/lib/soft/projectSoftCordSelfContact.js.map +1 -0
- package/lib/soft/simulateSoftBodyCore.d.ts +6 -3
- package/lib/soft/simulateSoftBodyCore.js +108 -16
- package/lib/soft/simulateSoftBodyCore.js.map +1 -1
- package/lib/soft/simulateSoftBodyWithBoundaries.d.ts +3 -2
- package/lib/soft/simulateSoftBodyWithBoundaries.js +10 -3
- package/lib/soft/simulateSoftBodyWithBoundaries.js.map +1 -1
- package/lib/soft/softBodyBudget.js +7 -0
- package/lib/soft/softBodyBudget.js.map +1 -1
- package/lib/soft/softBodyHeldLoads.d.ts +34 -0
- package/lib/soft/softBodyHeldLoads.js +69 -0
- package/lib/soft/softBodyHeldLoads.js.map +1 -0
- package/lib/soft/solveSoftBodyCompliantSweep.d.ts +48 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js +86 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js.map +1 -0
- package/lib/soft/validateSoftAnchors.d.ts +24 -0
- package/lib/soft/validateSoftAnchors.js +74 -0
- package/lib/soft/validateSoftAnchors.js.map +1 -0
- package/lib/soft/validateSoftBodyDomain.js +6 -48
- package/lib/soft/validateSoftBodyDomain.js.map +1 -1
- package/lib/soft/validateSoftBounded.d.ts +20 -0
- package/lib/soft/validateSoftBounded.js +27 -0
- package/lib/soft/validateSoftBounded.js.map +1 -0
- package/lib/soft/validateSoftCompliance.d.ts +30 -0
- package/lib/soft/validateSoftCompliance.js +54 -0
- package/lib/soft/validateSoftCompliance.js.map +1 -0
- package/lib/sound/index.d.ts +2 -0
- package/lib/sound/index.js +2 -0
- package/lib/sound/index.js.map +1 -1
- package/lib/text/index.d.ts +1 -0
- package/lib/text/index.js +1 -0
- package/lib/text/index.js.map +1 -1
- package/lib/validation/AffordanceArticulation.d.ts +69 -0
- package/lib/validation/AffordanceArticulation.js +142 -0
- package/lib/validation/AffordanceArticulation.js.map +1 -0
- package/lib/validation/affordanceFollowedTravel.d.ts +19 -0
- package/lib/validation/affordanceFollowedTravel.js +43 -0
- package/lib/validation/affordanceFollowedTravel.js.map +1 -0
- package/lib/validation/affordanceLeadingTravel.d.ts +21 -0
- package/lib/validation/affordanceLeadingTravel.js +99 -0
- package/lib/validation/affordanceLeadingTravel.js.map +1 -0
- package/lib/validation/affordanceTravelRange.d.ts +21 -0
- package/lib/validation/affordanceTravelRange.js +39 -0
- package/lib/validation/affordanceTravelRange.js.map +1 -0
- package/lib/validation/appendShotEventsArtifact.js +12 -0
- package/lib/validation/appendShotEventsArtifact.js.map +1 -1
- package/lib/validation/constants/index.d.ts +3 -3
- package/lib/validation/constants/index.js +3 -3
- package/lib/validation/constants/index.js.map +1 -1
- package/lib/validation/detectFreeFall.js +2 -1
- package/lib/validation/detectFreeFall.js.map +1 -1
- package/lib/validation/index.d.ts +52 -4
- package/lib/validation/index.js +52 -6
- package/lib/validation/index.js.map +1 -1
- package/lib/validation/markAutoMovieSlip.d.ts +26 -0
- package/lib/validation/markAutoMovieSlip.js +52 -0
- package/lib/validation/markAutoMovieSlip.js.map +1 -0
- package/lib/validation/validateAffordance.d.ts +3 -3
- package/lib/validation/validateAffordance.js +21 -3
- package/lib/validation/validateAffordance.js.map +1 -1
- package/lib/validation/validateAffordanceArticulation.d.ts +19 -0
- package/lib/validation/validateAffordanceArticulation.js +183 -0
- package/lib/validation/validateAffordanceArticulation.js.map +1 -0
- package/lib/validation/validateBalanceSupport.d.ts +1 -2
- package/lib/validation/validateBalanceSupport.js.map +1 -1
- package/lib/validation/validateBody.d.ts +2 -2
- package/lib/validation/validateBody.js +27 -3
- package/lib/validation/validateBody.js.map +1 -1
- package/lib/validation/validateFootSkate.d.ts +1 -2
- package/lib/validation/validateFootSkate.js.map +1 -1
- package/lib/validation/validateGroundContact.d.ts +1 -2
- package/lib/validation/validateGroundContact.js.map +1 -1
- package/lib/validation/validateJointConstraint.d.ts +1 -1
- package/lib/validation/validateJointConstraint.js +9 -1
- package/lib/validation/validateJointConstraint.js.map +1 -1
- package/lib/validation/validateModel.js +2 -0
- package/lib/validation/validateModel.js.map +1 -1
- package/lib/validation/validateSelfIntersection.d.ts +1 -2
- package/lib/validation/validateSelfIntersection.js.map +1 -1
- package/lib/worldBlock.js +6 -9
- package/lib/worldBlock.js.map +1 -1
- package/package.json +6 -6
- package/src/IAutoMovieFormationPlacement.ts +4 -3
- package/src/analysis/index.ts +5 -0
- package/src/anthropometry/AutoMovieHandAnthropometry.ts +65 -0
- package/src/anthropometry/index.ts +1 -0
- package/src/architecture/appendBuiltRegionDefects.ts +3 -3
- package/src/architecture/builtOutlineIsClosed.ts +3 -3
- package/{lib/architecture/constants/PLANAR_EPSILON.d.ts → src/architecture/constants/BUILT_PLANAR_EPSILON.ts} +1 -1
- package/src/architecture/constants/index.ts +1 -1
- package/src/architecture/index.ts +157 -117
- package/src/cache/index.ts +9 -0
- package/src/composition/AutoMovieComposition.ts +34 -7
- package/src/composition/AutoMovieScheduleCut.ts +141 -0
- package/src/composition/AutoMovieScheduleError.ts +108 -0
- package/src/composition/AutoMovieSchedulePlace.ts +253 -0
- package/src/composition/AutoMovieScheduleWalk.ts +215 -0
- package/src/composition/IAutoMovieIntent.ts +9 -7
- package/src/composition/index.ts +12 -7
- package/src/composition/markAutoMovieContacts.ts +79 -0
- package/src/composition/resolveAutoMovieContactEvents.ts +160 -19
- package/src/composition/resolveAutoMovieMutualGoal.ts +146 -72
- package/src/composition/resolveAutoMovieSchedule.ts +106 -145
- package/src/constants/index.ts +2 -0
- package/src/createAutoMovieGeometryActorReader.ts +2 -1
- package/src/describeAutoMovieInstanceSetSubject.ts +2 -5
- package/src/drawing/index.ts +12 -0
- package/src/effectRuntime/index.ts +7 -0
- package/src/film/compileAttach.ts +2 -5
- package/src/film/compileLaunch.ts +5 -4
- package/src/film/constants/index.ts +3 -0
- package/src/film/index.ts +61 -6
- package/src/film/propAnchorFrame.ts +3 -6
- package/src/film/stageScene.ts +3 -10
- package/src/film/staging/index.ts +11 -0
- package/src/film/staging/lowerLightPlacement.ts +3 -7
- package/src/formationSlotPosition.ts +54 -7
- package/src/geometry/IAutoMovieMark.ts +115 -0
- package/src/geometry/IAutoMovieMeshDefect.ts +39 -0
- package/src/geometry/constants/index.ts +2 -0
- package/src/geometry/construction/AutoMovieConstructionAdmission.ts +98 -13
- package/src/geometry/construction/AutoMovieConstructionBridgeRealize.ts +172 -0
- package/src/geometry/construction/AutoMovieConstructionContinuationRealize.ts +3 -0
- package/src/geometry/construction/AutoMovieConstructionPortRealize.ts +48 -16
- package/src/geometry/construction/AutoMovieConstructionSeeds.ts +54 -10
- package/src/geometry/construction/AutoMovieConstructionSplitBand.ts +509 -15
- package/src/geometry/construction/AutoMovieConstructionSplitRealize.ts +278 -0
- package/src/geometry/construction/AutoMovieConstructionSplitSeam.ts +50 -18
- package/src/geometry/construction/AutoMovieConstructionState.ts +13 -0
- package/src/geometry/construction/AutoMovieLoftCapRead.ts +3 -2
- package/src/geometry/construction/AutoMovieLoftCapSource.ts +34 -1
- package/src/geometry/construction/AutoMovieLoftJet.ts +10 -5
- package/src/geometry/construction/AutoMovieLoftPoint.ts +13 -4
- package/src/geometry/construction/AutoMovieLoftRelief.ts +42 -0
- package/src/geometry/construction/AutoMovieLoftViewRead.ts +34 -6
- package/src/geometry/construction/AutoMovieLoftViewSource.ts +4 -2
- package/src/geometry/construction/AutoMovieNaturalSpline.ts +44 -0
- package/src/geometry/construction/AutoMovieSolidBlendChain.ts +34 -20
- package/src/geometry/construction/AutoMovieSolidBodyMerge.ts +2 -0
- package/src/geometry/construction/AutoMovieSolidClip.ts +341 -54
- package/src/geometry/construction/AutoMovieSolidCycle.ts +104 -26
- package/src/geometry/construction/AutoMovieSolidIntersectionWalk.ts +100 -50
- package/src/geometry/construction/AutoMovieSolidJoin.ts +48 -2
- package/src/geometry/construction/AutoMovieSolidMeshConstraints.ts +35 -3
- package/src/geometry/construction/AutoMovieSolidMeshLoop.ts +55 -4
- package/src/geometry/construction/AutoMovieSolidMeshPlan.ts +79 -34
- package/src/geometry/construction/AutoMovieSolidRail.ts +124 -22
- package/src/geometry/construction/AutoMovieSolidRailSolve.ts +116 -25
- package/src/geometry/construction/AutoMovieViewLoft.ts +9 -0
- package/src/geometry/construction/IAutoMovieConstructionCurve.ts +42 -0
- package/src/geometry/construction/IAutoMovieLoftChain.ts +7 -0
- package/src/geometry/construction/IAutoMovieLoftRelief.ts +11 -0
- package/src/geometry/construction/IAutoMovieViewPart.ts +10 -1
- package/src/geometry/construction/faceAutoMovieSolidMesh.ts +76 -15
- package/src/geometry/construction/fairAutoMovieSolidMesh.ts +252 -0
- package/src/geometry/construction/gridAutoMovieSolidMesh.ts +173 -8
- package/src/geometry/construction/index.ts +82 -2
- package/src/geometry/construction/legalizeAutoMovieSolidMesh.ts +28 -2
- package/src/geometry/construction/markAutoMovieConstructionCurves.ts +58 -0
- package/src/geometry/construction/orientAutoMovieSolidChart.ts +32 -7
- package/src/geometry/construction/probeAutoMovieSolidMesh.ts +52 -30
- package/src/geometry/construction/realizeAutoMovieConstruction.ts +47 -5
- package/src/geometry/construction/sampleAutoMovieConstructionCurves.ts +307 -0
- package/src/geometry/curve/index.ts +48 -25
- package/src/geometry/extract/index.ts +0 -1
- package/src/geometry/index.ts +87 -53
- package/src/geometry/markAutoMovieMeshClearance.ts +69 -0
- package/src/geometry/measureAutoMovieMeshDefects.ts +327 -0
- package/src/geometry/sweep/index.ts +54 -15
- package/src/index.ts +41 -450
- package/src/kinematics/AutoMovieHumanoidDigitSurfaces.ts +110 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceExtents.ts +81 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRays.ts +286 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRegions.ts +189 -0
- package/src/kinematics/IAutoMovieHingedArticulation.ts +21 -3
- package/src/kinematics/IAutoMoviePoseRig.ts +39 -0
- package/src/kinematics/IAutoMovieSwivelNear.ts +26 -0
- package/src/kinematics/IAutoMovieSwivelSeed.ts +19 -0
- package/src/kinematics/alternateRigJointAngles.ts +41 -0
- package/src/kinematics/boxExcludedSwivels.ts +260 -0
- package/src/kinematics/constants/HUMANOID_JOINT_AXES.ts +19 -4
- package/src/kinematics/curlChainUntilContact.ts +35 -8
- package/src/kinematics/decomposeJointRotation.ts +15 -178
- package/src/kinematics/decomposeJointRotationOnBasis.ts +310 -0
- package/src/kinematics/fitDigitDescent.ts +253 -0
- package/src/kinematics/fitDigitToTarget.ts +425 -0
- package/src/kinematics/hingedArmArticulation.ts +402 -116
- package/src/kinematics/hingedArmSwivel.ts +295 -0
- package/src/kinematics/index.ts +30 -12
- package/src/kinematics/jointRomOvershoot.ts +30 -19
- package/src/kinematics/jointToQuaternion.ts +8 -43
- package/src/kinematics/jointToQuaternionOnBasis.ts +84 -0
- package/src/kinematics/markAutoMovieBalance.ts +75 -0
- package/src/kinematics/markAutoMovieRomOvershoot.ts +52 -0
- package/src/kinematics/measureAutoMovieHumanoidBody.ts +31 -9
- package/src/kinematics/normalizeJointAxes.ts +66 -12
- package/src/kinematics/poseJointCodec.ts +148 -0
- package/src/kinematics/resolveAutoMovieBalanceOutcome.ts +293 -0
- package/src/kinematics/resolveAutoMovieCenterOfMass.ts +63 -10
- package/src/kinematics/resolveAutoMovieHumanoidRingModules.ts +434 -0
- package/src/kinematics/resolveAutoMovieHumanoidSurfaces.ts +230 -356
- package/src/kinematics/resolveAutoMovieMomentum.ts +253 -0
- package/src/kinematics/swingTwistBasis.ts +162 -0
- package/src/kinematics/swingTwistExcludedSwivels.ts +204 -0
- package/src/kinematics/swingTwistRange.ts +460 -0
- package/src/kinematics/swingTwistRegion.ts +298 -0
- package/src/kinematics/swivelArcs.ts +245 -0
- package/src/math/Quaternion.ts +42 -2
- package/src/math/Transform.ts +65 -0
- package/src/math/assignAutoMovieMinimumCost.ts +86 -0
- package/src/math/bracketedBisection.ts +51 -0
- package/src/math/bracketedRoot.ts +72 -0
- package/src/math/constants/index.ts +1 -0
- package/src/math/index.ts +64 -5
- package/src/math/nearestAngleAlias.ts +43 -0
- package/src/math/solveAutoMovieHalfPlaneProgram.ts +288 -0
- package/src/math/tetrahedralizeAutoMovieDelaunay.ts +264 -0
- package/src/measureAutoMovieGeometryReach.ts +2 -4
- package/src/motion/AirborneTakeoffLinear.ts +70 -0
- package/src/motion/IAutoMovieCrowdAgent.ts +121 -0
- package/src/motion/IAutoMovieSeededChainFit.ts +32 -0
- package/src/motion/IAutoMovieSolvedChainPlant.ts +20 -0
- package/src/motion/IFitChainToTargetProps.ts +67 -0
- package/src/motion/MotionTrajectoryStepper.ts +478 -0
- package/src/motion/basisOf.ts +29 -0
- package/src/motion/carriedAcceleration.ts +56 -0
- package/src/motion/carriedRate.ts +61 -0
- package/src/motion/constants/PLANT_RESIDUAL_EPSILON.ts +10 -0
- package/src/motion/constants/index.ts +1 -0
- package/src/motion/fitChainBend.ts +491 -0
- package/src/motion/fitChainToTarget.ts +13 -485
- package/src/motion/fitHingedChainCandidate.ts +281 -148
- package/src/motion/fitHingedRotationError.ts +164 -0
- package/src/motion/fitSeededChainToTarget.ts +34 -0
- package/src/motion/gaitMotion.ts +6 -10
- package/src/motion/gestureMotion.ts +2 -5
- package/src/motion/importedNodeClipToAutoMovieMotion.ts +3 -6
- package/src/motion/index.ts +40 -9
- package/src/motion/inertializeOffset.ts +16 -2
- package/src/motion/inertializePose.ts +158 -53
- package/src/motion/integrateAirborneRotation.ts +334 -0
- package/src/motion/integrateMotionTrajectory.ts +309 -0
- package/src/motion/orientChainEffector.ts +19 -13
- package/src/motion/resolveHydrodynamicForce.ts +143 -0
- package/src/motion/sampleMotion.ts +2 -5
- package/src/motion/samplePoseVelocity.ts +168 -41
- package/src/motion/smoothMinimum.ts +36 -0
- package/src/motion/solveAirborneTakeoff.ts +471 -0
- package/src/motion/solveDistalTwist.ts +256 -0
- package/src/motion/speedProfile.ts +470 -0
- package/src/motion/splitDistalTwist.ts +55 -64
- package/src/motion/steerAutoMovieCrowd.ts +381 -0
- package/src/motion/steerAutoMovieCrowdGeometry.ts +592 -0
- package/src/perform/index.ts +10 -0
- package/src/physics/AutoMovieAir.ts +22 -0
- package/src/physics/AutoMovieGravity.ts +28 -0
- package/src/physics/IAutoMovieHit.ts +13 -7
- package/src/physics/IAutoMovieProjectile.ts +82 -6
- package/src/physics/IAutoMovieProjectileState.ts +10 -4
- package/src/physics/admitMotionGeometry.ts +16 -0
- package/src/physics/bindPhysicalWorld.ts +22 -11
- package/src/physics/combinePhysicalMassProperties.ts +9 -117
- package/src/physics/deriveCenterOfMass.ts +2 -5
- package/src/physics/derivePhysicalProfile.ts +3 -1
- package/src/physics/index.ts +155 -2
- package/src/physics/markAutoMovieSkeleton.ts +69 -0
- package/src/physics/physicalHullErode.ts +72 -0
- package/src/physics/physicalHullFaces.ts +215 -0
- package/src/physics/physicalHullMass.ts +99 -0
- package/src/physics/physicalHullNearest.ts +210 -0
- package/src/physics/physicalHullSegment.ts +338 -0
- package/src/physics/physicalInertiaTensor.ts +75 -0
- package/src/physics/physicalNativeShape.ts +31 -9
- package/src/physics/physicalPrincipalAxes.ts +114 -0
- package/src/physics/physicalShapeBounds.ts +24 -2
- package/src/physics/physicalShapeNearest.ts +287 -0
- package/src/physics/physicalShapeNormal.ts +105 -0
- package/src/physics/physicalShapePairDistance.ts +153 -0
- package/src/physics/physicalShapeSegmentDistance.ts +18 -92
- package/src/physics/physicalShapeSpan.ts +75 -0
- package/src/physics/physicalShapeSurfaceAnchor.ts +33 -14
- package/src/physics/projectileAt.ts +61 -20
- package/src/physics/projectileContinue.ts +287 -0
- package/src/physics/projectileDragFlight.ts +208 -0
- package/src/physics/projectileFirstContact.ts +286 -0
- package/src/physics/projectileTrajectory.ts +6 -5
- package/src/physics/solveBallisticLaunch.ts +2 -1
- package/src/physics/solveMovingLaunch.ts +2 -1
- package/src/physics/validatePhysicalProfile.ts +20 -1
- package/src/populationRuntime/index.ts +6 -0
- package/src/populationRuntime/materializeCompiledFormation.ts +3 -6
- package/src/random/index.ts +1 -1
- package/src/render/index.ts +20 -11
- package/src/resolve/index.ts +7 -2
- package/src/resolve/lowerSkeletonNodes.ts +3 -10
- package/src/rom/clampJointRom.ts +59 -2
- package/src/rom/clampJointToSkeleton.ts +52 -15
- package/src/rom/constants/ANKLE_DORSIFLEXION.ts +20 -0
- package/src/rom/constants/DEFAULT_HUMANOID_ROM.ts +148 -37
- package/src/rom/constants/ROM_TOLERANCE.ts +8 -0
- package/src/rom/constants/index.ts +2 -0
- package/src/rom/index.ts +1 -0
- package/src/rom/scanJointRom.ts +169 -0
- package/src/rom/validateJointRom.ts +69 -74
- package/src/service/index.ts +9 -0
- package/src/soft/IAutoMovieSoftBodyBoundarySample.ts +3 -0
- package/src/soft/IAutoMovieSoftBodyObserver.ts +36 -0
- package/src/soft/applySoftBodyFriction.ts +65 -0
- package/src/soft/index.ts +22 -0
- package/src/soft/projectSoftCordSelfContact.ts +239 -0
- package/src/soft/simulateSoftBodyCore.ts +127 -15
- package/src/soft/simulateSoftBodyWithBoundaries.ts +16 -2
- package/src/soft/softBodyBudget.ts +11 -0
- package/src/soft/softBodyHeldLoads.ts +85 -0
- package/src/soft/solveSoftBodyCompliantSweep.ts +107 -0
- package/src/soft/validateSoftAnchors.ts +143 -0
- package/src/soft/validateSoftBodyDomain.ts +5 -124
- package/src/soft/validateSoftBounded.ts +42 -0
- package/src/soft/validateSoftCompliance.ts +102 -0
- package/src/sound/index.ts +2 -0
- package/src/text/index.ts +1 -0
- package/src/validation/AffordanceArticulation.ts +173 -0
- package/src/validation/affordanceFollowedTravel.ts +40 -0
- package/src/validation/affordanceLeadingTravel.ts +108 -0
- package/src/validation/affordanceTravelRange.ts +42 -0
- package/src/validation/appendShotEventsArtifact.ts +26 -0
- package/src/validation/constants/index.ts +3 -3
- package/src/validation/detectFreeFall.ts +3 -2
- package/src/validation/index.ts +52 -4
- package/src/validation/markAutoMovieSlip.ts +65 -0
- package/src/validation/validateAffordance.ts +38 -3
- package/src/validation/validateAffordanceArticulation.ts +311 -0
- package/src/validation/validateBalanceSupport.ts +2 -5
- package/src/validation/validateBody.ts +80 -3
- package/src/validation/validateFootSkate.ts +1 -1
- package/src/validation/validateGroundContact.ts +2 -5
- package/src/validation/validateJointConstraint.ts +19 -1
- package/src/validation/validateModel.ts +7 -0
- package/src/validation/validateSelfIntersection.ts +2 -5
- package/src/worldBlock.ts +3 -6
- package/lib/architecture/constants/PLANAR_EPSILON.js.map +0 -1
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fitHingedChainCandidate = fitHingedChainCandidate;
|
|
4
|
+
const boxExcludedSwivels_1 = require("../kinematics/boxExcludedSwivels");
|
|
4
5
|
const clinicalDeviation_1 = require("../kinematics/clinicalDeviation");
|
|
5
|
-
const
|
|
6
|
+
const decomposeJointRotationOnBasis_1 = require("../kinematics/decomposeJointRotationOnBasis");
|
|
6
7
|
const hingedArmArticulation_1 = require("../kinematics/hingedArmArticulation");
|
|
7
8
|
const jointRomOvershoot_1 = require("../kinematics/jointRomOvershoot");
|
|
8
9
|
const jointToQuaternion_1 = require("../kinematics/jointToQuaternion");
|
|
10
|
+
const swingTwistRange_1 = require("../kinematics/swingTwistRange");
|
|
9
11
|
const Quaternion_1 = require("../math/Quaternion");
|
|
10
12
|
const Vector3_1 = require("../math/Vector3");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
+
const ROM_TOLERANCE_1 = require("../rom/constants/ROM_TOLERANCE");
|
|
14
|
+
const basisOf_1 = require("./basisOf");
|
|
15
|
+
const fitHingedRotationError_1 = require("./fitHingedRotationError");
|
|
13
16
|
/**
|
|
14
17
|
* The hinged chain's candidate: `hingedArmArticulation`'s swivel sweep with
|
|
15
18
|
* each candidate decomposed through the prepared clinical domains, scored
|
|
16
|
-
* first by the rig's ROM overshoot
|
|
19
|
+
* first by the rig's ROM overshoot plus the request's `obstruction` of the
|
|
20
|
+
* candidate's mid and end joints, and then by one continuous cost: the
|
|
17
21
|
* requested effector rotation's error in degrees (when one is requested),
|
|
18
22
|
* plus two degrees per unit of the mid joint's swing away from the bend
|
|
19
23
|
* hint's side of the root-to-target axis (`1 - cos`; without a hint, the side
|
|
@@ -27,11 +31,22 @@ const clampJointToSkeleton_1 = require("../rom/clampJointToSkeleton");
|
|
|
27
31
|
* two separate minima tie exactly; the reference term then decides the tie
|
|
28
32
|
* toward the reference's side. The weights are provisional, as no source
|
|
29
33
|
* fixes them: one degree of joint turn from the reference counts as much as
|
|
30
|
-
* one degree of effector error
|
|
34
|
+
* one degree of effector error (times the request's `referenceWeight`, 1
|
|
35
|
+
* when omitted), so the reference's side is kept unless a
|
|
31
36
|
* turn buys at least as much accuracy; and the
|
|
32
37
|
* hint's side is worth 2 degrees per unit of `1 - cos` (4 degrees for the
|
|
33
38
|
* opposite side), enough to decide between otherwise equal swivels while
|
|
34
|
-
* never outweighing a visible effector error.
|
|
39
|
+
* never outweighing a visible effector error. A request continuing a nearby
|
|
40
|
+
* fit (`near`) refines that fit's seed instead of sweeping, and the candidate
|
|
41
|
+
* carries the seed it was chosen at. A request with a `strain` ranks the
|
|
42
|
+
* swivels by task priority instead (Siciliano and Slotine 1991): legality,
|
|
43
|
+
* then the hand's rotation error, two errors within the joints' tolerance
|
|
44
|
+
* (`ROM_TOLERANCE`) being one, then the turn from a `referencePose` when one
|
|
45
|
+
* is given (which keeps a stroke's side), else the strain, with no bend
|
|
46
|
+
* hint; the
|
|
47
|
+
* candidate carries the value it was chosen by, so a caller ranking keys by
|
|
48
|
+
* their fits reads one continuous value (Berge's maximum theorem) instead
|
|
49
|
+
* of a measure taken at another search's argmin.
|
|
35
50
|
*
|
|
36
51
|
* @param props The fit request, with merged axes.
|
|
37
52
|
* @param prepared The chain's preparation.
|
|
@@ -43,14 +58,14 @@ const clampJointToSkeleton_1 = require("../rom/clampJointToSkeleton");
|
|
|
43
58
|
* @evidence contracts/development/implementation.md#principled-implementation The swivel parameterisation of Tolani, Goswami and Badler 2000 through the engine's hingedArmArticulation, scored through the same clinical decomposition and ROM overshoot the fit reports.
|
|
44
59
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scoring closure over hingedArmArticulation's sweep; the effector error is a separate member.
|
|
45
60
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Overshoot ranks first, so no illegal candidate wins on the hint or the hand; a degenerate chain returns null for the caller's fallback.
|
|
46
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms 720 candidates (360 swivels on two branches), each
|
|
61
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms 720 candidates (360 swivels on two branches), each one decomposition of the root joint, an overshoot and, with a rotation, the error's decomposition of the effector; what the mid joint's rotation alone gives (its angles, overshoot, effort and turn from the reference) is read once per branch, since a branch's candidates share that rotation; swivels the root's three-angle box or swing-twist range certainly refuses are not scored (`boxExcludedSwivels`), with the full sweep's answer.
|
|
47
62
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its input, called once per fit.
|
|
48
63
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing.
|
|
49
64
|
*/
|
|
50
65
|
function fitHingedChainCandidate(props, prepared, axes, rotation) {
|
|
51
66
|
const turn = rotation === undefined
|
|
52
67
|
? null
|
|
53
|
-
:
|
|
68
|
+
: (0, fitHingedRotationError_1.fitHingedRotationError)(props, prepared, axes, rotation);
|
|
54
69
|
const root = prepared.upper.worldPosition;
|
|
55
70
|
const reach = Vector3_1.Vector3.subtract(props.target, root);
|
|
56
71
|
if (Vector3_1.Vector3.length(reach) < 1e-9)
|
|
@@ -62,15 +77,16 @@ function fitHingedChainCandidate(props, prepared, axes, rotation) {
|
|
|
62
77
|
};
|
|
63
78
|
const hint = across(props.bend ?? Vector3_1.Vector3.subtract(root, posedSwing(props, prepared, axes)));
|
|
64
79
|
const side = Vector3_1.Vector3.length(hint) < 1e-9 ? null : Vector3_1.Vector3.normalize(hint);
|
|
80
|
+
// Each basis is admitted and normalized once for the whole sweep; the
|
|
81
|
+
// candidates differ only in their rotation.
|
|
82
|
+
const upperBasis = (0, basisOf_1.basisOf)(props.jointAxes?.[props.chain.upper]);
|
|
83
|
+
const lowerBasis = (0, basisOf_1.basisOf)(axes);
|
|
65
84
|
const joints = (upper, lower) => [
|
|
66
85
|
{
|
|
67
86
|
bone: props.chain.upper,
|
|
68
|
-
...(0,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
bone: props.chain.lower,
|
|
72
|
-
...(0, decomposeJointRotation_1.decomposeJointRotation)(lower, axes, props.restFrames?.[props.chain.lower], prepared.lowerDomain),
|
|
87
|
+
...(0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(upper, upperBasis, props.restFrames?.[props.chain.upper], prepared.upperDomain),
|
|
73
88
|
},
|
|
89
|
+
midOf(lower).joint,
|
|
74
90
|
];
|
|
75
91
|
const previous = (bone) => {
|
|
76
92
|
const joint = props.referencePose?.joints.find((j) => j.bone === bone);
|
|
@@ -84,12 +100,66 @@ function fitHingedChainCandidate(props, prepared, axes, rotation) {
|
|
|
84
100
|
previous(props.chain.upper),
|
|
85
101
|
previous(props.chain.lower),
|
|
86
102
|
];
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
const anchor = props.referenceWeight ?? 1;
|
|
104
|
+
if (!Number.isFinite(anchor) || anchor < 0)
|
|
105
|
+
throw new Error(`fitChainToTarget referenceWeight must be finite and non-negative, but was ${anchor}`);
|
|
106
|
+
const apart = (a, b) => (b === null ? 0 : (Quaternion_1.Quaternion.angle(a, b) * 180) / Math.PI);
|
|
107
|
+
// A sweep's candidates on one bend branch share one mid rotation, the
|
|
108
|
+
// same record, and differ only in the swivel of the root. What depends on
|
|
109
|
+
// the mid rotation alone is read once per record: the same values, read
|
|
110
|
+
// once instead of per candidate.
|
|
111
|
+
let mid;
|
|
112
|
+
const midOf = (lower) => {
|
|
113
|
+
if (mid !== undefined && mid.rotation === lower)
|
|
114
|
+
return mid;
|
|
115
|
+
const joint = {
|
|
116
|
+
bone: props.chain.lower,
|
|
117
|
+
...(0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(lower, lowerBasis, props.restFrames?.[props.chain.lower], prepared.lowerDomain),
|
|
118
|
+
};
|
|
119
|
+
mid = {
|
|
120
|
+
rotation: lower,
|
|
121
|
+
joint,
|
|
122
|
+
overshoot: (0, jointRomOvershoot_1.jointRomOvershoot)(joint, prepared.lowerDomain.constraint),
|
|
123
|
+
effort: (0, clinicalDeviation_1.clinicalDeviation)({
|
|
124
|
+
flexion: joint.flexion ?? 0,
|
|
125
|
+
abduction: joint.abduction ?? 0,
|
|
126
|
+
twist: joint.twist ?? 0,
|
|
127
|
+
}),
|
|
128
|
+
turned: apart(Quaternion_1.Quaternion.normalize(lower), before[1]),
|
|
129
|
+
};
|
|
130
|
+
return mid;
|
|
131
|
+
};
|
|
132
|
+
const range = hingeRange(props, prepared, axes, lowerBasis);
|
|
133
|
+
// What a candidate reads besides the hint's side: its root's angles, its
|
|
134
|
+
// mid joint's place, its overshoot, effort and turn from the reference.
|
|
135
|
+
const reading = (upper, lower) => {
|
|
136
|
+
const [u] = joints(upper, lower);
|
|
137
|
+
const turnedUpper = Quaternion_1.Quaternion.multiply(prepared.upper.worldRotation, upper);
|
|
138
|
+
const lowerWorld = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.multiply(turnedUpper, prepared.lowerRotation), lower);
|
|
139
|
+
const mid = Vector3_1.Vector3.add(root, Quaternion_1.Quaternion.rotateVector(turnedUpper, prepared.lowerOffset));
|
|
140
|
+
const blocked = props.obstruction === undefined
|
|
141
|
+
? 0
|
|
142
|
+
: props.obstruction(mid, Vector3_1.Vector3.add(mid, Quaternion_1.Quaternion.rotateVector(lowerWorld, prepared.effectorOffset)));
|
|
143
|
+
const known = midOf(lower);
|
|
144
|
+
return {
|
|
145
|
+
mid,
|
|
146
|
+
lowerWorld,
|
|
147
|
+
effort: (0, clinicalDeviation_1.clinicalDeviation)({
|
|
148
|
+
flexion: u.flexion ?? 0,
|
|
149
|
+
abduction: u.abduction ?? 0,
|
|
150
|
+
twist: u.twist ?? 0,
|
|
151
|
+
}) + known.effort,
|
|
152
|
+
overshoot: (0, jointRomOvershoot_1.jointRomOvershoot)(u, prepared.upperDomain.constraint) +
|
|
153
|
+
known.overshoot +
|
|
154
|
+
blocked,
|
|
155
|
+
turned: anchor * (apart(Quaternion_1.Quaternion.normalize(upper), before[0]) + known.turned),
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
// With a strain the swivels are ranked by task priority (Siciliano and
|
|
159
|
+
// Slotine 1991): legality, then the hand's rotation error, errors within
|
|
160
|
+
// the joints' tolerance (`ROM_TOLERANCE`) being one, then the strain; the
|
|
161
|
+
// bend hint's side plays no part.
|
|
162
|
+
const strain = props.strain;
|
|
93
163
|
const solved = (0, hingedArmArticulation_1.hingedArmArticulation)({
|
|
94
164
|
upper: prepared.upper,
|
|
95
165
|
midOffset: prepared.lowerOffset,
|
|
@@ -97,78 +167,116 @@ function fitHingedChainCandidate(props, prepared, axes, rotation) {
|
|
|
97
167
|
endOffset: prepared.effectorOffset,
|
|
98
168
|
hinge: axes.flexion,
|
|
99
169
|
target: props.target,
|
|
170
|
+
...(range === null ? {} : { range }),
|
|
171
|
+
// A fit of a nearby target continued from its seed refines that seed
|
|
172
|
+
// alone (`IAutoMovieSwivelNear`).
|
|
173
|
+
...(props.near === undefined ? {} : { near: props.near }),
|
|
174
|
+
...(strain === undefined ? {} : { tie: ROM_TOLERANCE_1.ROM_TOLERANCE }),
|
|
175
|
+
// The root's box, or its swing-twist range, refuses swivels its
|
|
176
|
+
// overshoot can only score above zero, so the sweep spares them
|
|
177
|
+
// (`boxExcludedSwivels`). The range is read in the frame
|
|
178
|
+
// `jointRomOvershoot` reads it in without a rig.
|
|
179
|
+
excluded: (upper) => (0, boxExcludedSwivels_1.boxExcludedSwivels)({
|
|
180
|
+
basis: upperBasis,
|
|
181
|
+
frame: props.restFrames?.[props.chain.upper],
|
|
182
|
+
constraint: prepared.upperDomain.constraint,
|
|
183
|
+
joint: swingTwistRange_1.swingTwistRange.of(props.chain.upper),
|
|
184
|
+
rotation: upper,
|
|
185
|
+
}),
|
|
100
186
|
score: (upper, lower) => {
|
|
101
|
-
const
|
|
102
|
-
|
|
187
|
+
const { mid, lowerWorld, effort, overshoot, turned } = reading(upper, lower);
|
|
188
|
+
if (strain !== undefined)
|
|
189
|
+
return {
|
|
190
|
+
overshoot,
|
|
191
|
+
deviation: 0,
|
|
192
|
+
...(turn === null
|
|
193
|
+
? {}
|
|
194
|
+
: { exact: () => turn(upper, lower) }),
|
|
195
|
+
// A reference pose keeps its side through a stroke, so its turn
|
|
196
|
+
// decides before the strain; without one the strain decides.
|
|
197
|
+
tiebreak: () => props.referencePose === undefined
|
|
198
|
+
? strain(upper, lower, lowerWorld)
|
|
199
|
+
: turned,
|
|
200
|
+
};
|
|
201
|
+
// The hint's side weighs as the mid joint leaves the line to the
|
|
202
|
+
// target: a straight limb has no side, and a rounding-sized offset's
|
|
203
|
+
// direction must not rank swivels.
|
|
103
204
|
const offset = across(mid);
|
|
104
|
-
const
|
|
205
|
+
const off = Vector3_1.Vector3.length(offset);
|
|
206
|
+
const away = side === null || off < 1e-12
|
|
105
207
|
? 0
|
|
106
|
-
: 1 - Vector3_1.Vector3.dot(Vector3_1.Vector3.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
208
|
+
: (1 - Vector3_1.Vector3.dot(Vector3_1.Vector3.scale(offset, 1 / off), side)) *
|
|
209
|
+
Math.min(1, off / SIDED);
|
|
210
|
+
// The effector's error is the costly term and is never negative, so
|
|
211
|
+
// the sum without it, added in the same order, is a lower bound of
|
|
212
|
+
// the tie-break (rounding is monotone), and the error is computed
|
|
213
|
+
// only for a comparison the bound cannot decide.
|
|
214
|
+
if (turn === null)
|
|
215
|
+
return {
|
|
216
|
+
overshoot,
|
|
217
|
+
deviation: 0 + 2 * away + turned + 1e-9 * effort,
|
|
218
|
+
};
|
|
117
219
|
return {
|
|
118
|
-
overshoot
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
2 * away +
|
|
122
|
-
apart(Quaternion_1.Quaternion.normalize(upper), before[0]) +
|
|
123
|
-
apart(Quaternion_1.Quaternion.normalize(lower), before[1]) +
|
|
124
|
-
1e-9 * effort,
|
|
220
|
+
overshoot,
|
|
221
|
+
deviation: 0 + 2 * away + turned + 1e-9 * effort,
|
|
222
|
+
exact: () => turn(upper, lower) + 2 * away + turned + 1e-9 * effort,
|
|
125
223
|
};
|
|
126
224
|
},
|
|
127
225
|
});
|
|
128
226
|
if (solved === null)
|
|
129
227
|
return null;
|
|
130
228
|
const [upper, lower] = joints(solved.upper, solved.lower);
|
|
131
|
-
return {
|
|
229
|
+
return {
|
|
230
|
+
hinge: prepared.hinge,
|
|
231
|
+
upper,
|
|
232
|
+
lower,
|
|
233
|
+
shortfall: solved.shortfall,
|
|
234
|
+
seed: { swivel: solved.swivel, branch: solved.branch },
|
|
235
|
+
...(strain === undefined
|
|
236
|
+
? {}
|
|
237
|
+
: {
|
|
238
|
+
value: {
|
|
239
|
+
overshoot: solved.overshoot,
|
|
240
|
+
error: solved.deviation,
|
|
241
|
+
strain: solved.second ?? 0,
|
|
242
|
+
},
|
|
243
|
+
}),
|
|
244
|
+
};
|
|
132
245
|
}
|
|
133
246
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* single swing-twist owner (`swingTwist`); each joint is clamped through its
|
|
141
|
-
* clinical domain as the fit clamps it; the error is the geodesic angle
|
|
142
|
-
* `2 acos |<shown, requested>|` between the shown and the requested rotation.
|
|
247
|
+
* The mid joint's flexion range as rotation about its own hinge, radians:
|
|
248
|
+
* what `hingedArmArticulation` takes as `range`. The clinical flexion of a
|
|
249
|
+
* pure hinge rotation is linear in the hinge angle, with a sign and an offset
|
|
250
|
+
* that differ between an elbow and a knee and between rigs, so both are read
|
|
251
|
+
* numerically from the principal decomposition at zero and at one degree
|
|
252
|
+
* rather than assumed.
|
|
143
253
|
*
|
|
144
254
|
* @param props The fit request.
|
|
145
|
-
* @param prepared The chain's preparation.
|
|
146
|
-
* @param axes The mid bone's axes.
|
|
147
|
-
* @param
|
|
148
|
-
* @returns The
|
|
255
|
+
* @param prepared The chain's preparation; its lower domain carries the range.
|
|
256
|
+
* @param axes The mid bone's axes; its flexion is the hinge.
|
|
257
|
+
* @param basis The mid bone's normalized basis.
|
|
258
|
+
* @returns The range, or null when the joint has no flexion range to keep or the reading is degenerate.
|
|
149
259
|
*/
|
|
150
|
-
function
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
shown.w * rotation.w));
|
|
171
|
-
return (2 * Math.acos(dot) * 180) / Math.PI;
|
|
260
|
+
function hingeRange(props, prepared, axes, basis) {
|
|
261
|
+
const flexion = prepared.lowerDomain.constraint?.flexion;
|
|
262
|
+
if (flexion === null || flexion === undefined)
|
|
263
|
+
return null;
|
|
264
|
+
const length = Vector3_1.Vector3.length(axes.flexion);
|
|
265
|
+
if (length < 1e-6)
|
|
266
|
+
return null;
|
|
267
|
+
const hinge = Vector3_1.Vector3.scale(axes.flexion, 1 / length);
|
|
268
|
+
const read = (degrees) => (0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(Quaternion_1.Quaternion.fromAxisAngle(hinge, degrees), basis, props.restFrames?.[props.chain.lower]).flexion ?? 0;
|
|
269
|
+
const offset = read(0);
|
|
270
|
+
const slope = read(1) - offset;
|
|
271
|
+
if (Math.abs(Math.abs(slope) - 1) > 1e-6)
|
|
272
|
+
return null;
|
|
273
|
+
const ends = [
|
|
274
|
+
(flexion.min - offset) / slope,
|
|
275
|
+
(flexion.max - offset) / slope,
|
|
276
|
+
];
|
|
277
|
+
return {
|
|
278
|
+
min: (Math.min(...ends) * Math.PI) / 180,
|
|
279
|
+
max: (Math.max(...ends) * Math.PI) / 180,
|
|
172
280
|
};
|
|
173
281
|
}
|
|
174
282
|
/**
|
|
@@ -212,4 +320,6 @@ function posedSwing(props, prepared, axes) {
|
|
|
212
320
|
const flexion = lowerJoint.flexion ?? 0;
|
|
213
321
|
return Vector3_1.Vector3.subtract(end(flexion + 1), end(flexion));
|
|
214
322
|
}
|
|
323
|
+
/** The mid joint's distance from the line to the target, metres, from which the bend hint's side weighs in full (provisional: a millimetre, past any rounding of a limb's joints and short of any bend one sees). */
|
|
324
|
+
const SIDED = 1e-3;
|
|
215
325
|
//# sourceMappingURL=fitHingedChainCandidate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fitHingedChainCandidate.js","sourceRoot":"","sources":["../../src/motion/fitHingedChainCandidate.ts"],"names":[],"mappings":";;;AAQA,uEAAoE;AACpE,iFAA8E;AAC9E,+EAA4E;AAC5E,uEAAoE;AACpE,uEAAoE;AACpE,mDAAgD;AAChD,6CAA0C;AAC1C,mDAAgD;AAChD,sEAAmE;AAKnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,iCACE,KAA6B,EAC7B,QAA2D,EAC3D,IAAyB,EACzB,QAA+B;IAE/B,MAAM,IAAI,GAGR,QAAQ,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OAAO,IAAI,CAAC,CAAC;IAChD,OAAO,iBAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,qNAAqN;AACrN,MAAM,KAAK,GAAW,IAAI,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IAutoMovieJointAxes, IAutoMovieQuaternion } from "@automovie/interface";
|
|
2
|
+
import type { IFitChainToTargetProps } from "./IFitChainToTargetProps";
|
|
3
|
+
import type { prepareChainPlant } from "./prepareChainPlant";
|
|
4
|
+
/**
|
|
5
|
+
* How far, in degrees, the effector misses a requested rotation once a
|
|
6
|
+
* hinged candidate's mid bone has taken its distal twist share and the
|
|
7
|
+
* effector its swing, each clamped to the rig's range: the split that
|
|
8
|
+
* `splitDistalTwist` and `orientChainEffector` later apply to the chosen
|
|
9
|
+
* candidate, evaluated here for every candidate so the ranking sees the hand
|
|
10
|
+
* the fit will actually show. A distally twisting mid bone's twist is the one
|
|
11
|
+
* `solveDistalTwist` gives from the candidate's own and the effector the
|
|
12
|
+
* pose holds; each joint is clamped through its clinical domain as the fit
|
|
13
|
+
* clamps it. An effector its clamp leaves alone shows the request exactly, so
|
|
14
|
+
* its error is zero, not rounding that would rank swivels and break the
|
|
15
|
+
* mirror; any other error is the geodesic angle from `Quaternion.angle`.
|
|
16
|
+
*
|
|
17
|
+
* @param props The fit request.
|
|
18
|
+
* @param prepared The chain's preparation.
|
|
19
|
+
* @param axes The mid bone's axes.
|
|
20
|
+
* @param rotation The requested effector rotation.
|
|
21
|
+
* @returns The error of a candidate's bone-local root and mid rotations.
|
|
22
|
+
*
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what is read, which split it reads, when it is zero and the unit.
|
|
24
|
+
* @evidence contracts/development/implementation.md#principled-implementation The candidate's twist is the one the fit will give (`solveDistalTwist`), so the ranking sees the shown hand.
|
|
25
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One decomposition, one solve and one clamp per candidate.
|
|
26
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only an effector its clamp leaves alone counts as reached.
|
|
27
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work per candidate, the mid joint's angles read once per mid rotation; read only for a comparison the ranking's bound cannot decide.
|
|
28
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Bases are admitted once per fit by the caller.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing.
|
|
30
|
+
*/
|
|
31
|
+
export declare function fitHingedRotationError(props: IFitChainToTargetProps, prepared: NonNullable<ReturnType<typeof prepareChainPlant>>, axes: IAutoMovieJointAxes, rotation: IAutoMovieQuaternion): (upper: IAutoMovieQuaternion, lower: IAutoMovieQuaternion) => number;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fitHingedRotationError = fitHingedRotationError;
|
|
4
|
+
const decomposeJointRotationOnBasis_1 = require("../kinematics/decomposeJointRotationOnBasis");
|
|
5
|
+
const jointToQuaternionOnBasis_1 = require("../kinematics/jointToQuaternionOnBasis");
|
|
6
|
+
const Quaternion_1 = require("../math/Quaternion");
|
|
7
|
+
const clampJointToSkeleton_1 = require("../rom/clampJointToSkeleton");
|
|
8
|
+
const basisOf_1 = require("./basisOf");
|
|
9
|
+
const solveDistalTwist_1 = require("./solveDistalTwist");
|
|
10
|
+
/**
|
|
11
|
+
* How far, in degrees, the effector misses a requested rotation once a
|
|
12
|
+
* hinged candidate's mid bone has taken its distal twist share and the
|
|
13
|
+
* effector its swing, each clamped to the rig's range: the split that
|
|
14
|
+
* `splitDistalTwist` and `orientChainEffector` later apply to the chosen
|
|
15
|
+
* candidate, evaluated here for every candidate so the ranking sees the hand
|
|
16
|
+
* the fit will actually show. A distally twisting mid bone's twist is the one
|
|
17
|
+
* `solveDistalTwist` gives from the candidate's own and the effector the
|
|
18
|
+
* pose holds; each joint is clamped through its clinical domain as the fit
|
|
19
|
+
* clamps it. An effector its clamp leaves alone shows the request exactly, so
|
|
20
|
+
* its error is zero, not rounding that would rank swivels and break the
|
|
21
|
+
* mirror; any other error is the geodesic angle from `Quaternion.angle`.
|
|
22
|
+
*
|
|
23
|
+
* @param props The fit request.
|
|
24
|
+
* @param prepared The chain's preparation.
|
|
25
|
+
* @param axes The mid bone's axes.
|
|
26
|
+
* @param rotation The requested effector rotation.
|
|
27
|
+
* @returns The error of a candidate's bone-local root and mid rotations.
|
|
28
|
+
*
|
|
29
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what is read, which split it reads, when it is zero and the unit.
|
|
30
|
+
* @evidence contracts/development/implementation.md#principled-implementation The candidate's twist is the one the fit will give (`solveDistalTwist`), so the ranking sees the shown hand.
|
|
31
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One decomposition, one solve and one clamp per candidate.
|
|
32
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only an effector its clamp leaves alone counts as reached.
|
|
33
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work per candidate, the mid joint's angles read once per mid rotation; read only for a comparison the ranking's bound cannot decide.
|
|
34
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Bases are admitted once per fit by the caller.
|
|
35
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing.
|
|
36
|
+
*/
|
|
37
|
+
function fitHingedRotationError(props, prepared, axes, rotation) {
|
|
38
|
+
const effector = props.chain.effector;
|
|
39
|
+
const rest = props.skeleton.bones.find((b) => b.bone === effector)?.rest
|
|
40
|
+
.rotation ?? Quaternion_1.Quaternion.identity();
|
|
41
|
+
const effectorAxes = props.jointAxes?.[effector];
|
|
42
|
+
const lowerBasis = (0, basisOf_1.basisOf)(axes);
|
|
43
|
+
const effectorBasis = (0, basisOf_1.basisOf)(effectorAxes);
|
|
44
|
+
// Each joint's basis was admitted and normalized above, once for the whole
|
|
45
|
+
// sweep, so the clamped angles are composed on it directly.
|
|
46
|
+
const wanted = Quaternion_1.Quaternion.normalize(rotation);
|
|
47
|
+
const lowerFrame = props.restFrames?.[props.chain.lower];
|
|
48
|
+
const effectorFrame = props.restFrames?.[effector];
|
|
49
|
+
// The effector as the pose holds it, from which the mid twist is solved.
|
|
50
|
+
const held = props.pose.joints.find((j) => j.bone === effector) ?? { bone: effector, flexion: null, abduction: null, twist: null };
|
|
51
|
+
// Each joint's clamp is resolved once for the whole sweep, as is the
|
|
52
|
+
// effector's rest's inverse.
|
|
53
|
+
const clampLower = clampJointToSkeleton_1.clampJointToSkeleton.of(props.chain.lower, props.skeleton);
|
|
54
|
+
const clampEffector = clampJointToSkeleton_1.clampJointToSkeleton.of(effector, props.skeleton);
|
|
55
|
+
const restInverse = Quaternion_1.Quaternion.inverse(rest);
|
|
56
|
+
// A sweep's candidates on one bend branch share one mid rotation record,
|
|
57
|
+
// so its angles are read once per record, and a mid bone that does not
|
|
58
|
+
// twist distally its clamped local rotation too.
|
|
59
|
+
let seen;
|
|
60
|
+
let angles;
|
|
61
|
+
let clamped;
|
|
62
|
+
return (upper, lower) => {
|
|
63
|
+
const above = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.multiply(prepared.upper.worldRotation, upper), prepared.lowerRotation);
|
|
64
|
+
// The mid bone's angles, its twist solved as splitDistalTwist solves it.
|
|
65
|
+
if (seen !== lower || angles === undefined) {
|
|
66
|
+
seen = lower;
|
|
67
|
+
angles = (0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(lower, lowerBasis, lowerFrame, prepared.lowerDomain);
|
|
68
|
+
clamped =
|
|
69
|
+
axes.twistPlacement === "distal"
|
|
70
|
+
? undefined
|
|
71
|
+
: (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(clampLower({ bone: props.chain.lower, ...angles }), lowerBasis, lowerFrame);
|
|
72
|
+
}
|
|
73
|
+
const read = angles;
|
|
74
|
+
const joint = { bone: props.chain.lower, ...read };
|
|
75
|
+
const mid = Quaternion_1.Quaternion.multiply(above, clamped ??
|
|
76
|
+
(0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)((0, solveDistalTwist_1.solveDistalTwist)({
|
|
77
|
+
joint,
|
|
78
|
+
effector: held,
|
|
79
|
+
above,
|
|
80
|
+
lowerBasis,
|
|
81
|
+
lowerFrame,
|
|
82
|
+
effectorRest: rest,
|
|
83
|
+
effectorBasis,
|
|
84
|
+
effectorFrame,
|
|
85
|
+
rotation,
|
|
86
|
+
skeleton: props.skeleton,
|
|
87
|
+
clamps: { lower: clampLower, effector: clampEffector },
|
|
88
|
+
}), lowerBasis, lowerFrame));
|
|
89
|
+
const local = Quaternion_1.Quaternion.normalize(Quaternion_1.Quaternion.multiply(restInverse, Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(mid), rotation)));
|
|
90
|
+
const a = (0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(local, effectorBasis, effectorFrame);
|
|
91
|
+
const kept = clampEffector({
|
|
92
|
+
bone: effector,
|
|
93
|
+
flexion: a.flexion,
|
|
94
|
+
abduction: a.abduction,
|
|
95
|
+
twist: a.twist,
|
|
96
|
+
});
|
|
97
|
+
if (kept.flexion === a.flexion &&
|
|
98
|
+
kept.abduction === a.abduction &&
|
|
99
|
+
Math.abs((a.twist ?? 0) - (kept.twist ?? 0)) <= REACHED)
|
|
100
|
+
return 0;
|
|
101
|
+
const shown = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.multiply(mid, rest), (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(kept, effectorBasis, effectorFrame));
|
|
102
|
+
return ((Quaternion_1.Quaternion.angle(Quaternion_1.Quaternion.normalize(shown), wanted) * 180) / Math.PI);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/** The effector twist, degrees, a clamp may take off an effector still counted as reached: the rounding the closed-form twist solve leaves. */
|
|
106
|
+
const REACHED = 1e-9;
|
|
107
|
+
//# sourceMappingURL=fitHingedRotationError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitHingedRotationError.js","sourceRoot":"","sources":["../../src/motion/fitHingedRotationError.ts"],"names":[],"mappings":";;;AAQA,+FAA4F;AAC5F,qFAAkF;AAClF,mDAAgD;AAEhD,sEAAmE;AAEnE,uCAAoC;AAEpC,yDAAsD;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,gCACE,KAA6B,EAC7B,QAA2D,EAC3D,IAAyB,EACzB,QAA8B;IAE9B,MAAM,QAAQ,GAA0B,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7D,MAAM,IAAI,GACR,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAW,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,IAAI;SACjE,QAAQ,IAAI,uBAAU,CAAC,QAAQ,EAAE,CAAC;IACvC,MAAM,YAAY,GAChB,KAAK,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC9B,MAAM,UAAU,GAAwB,IAAA,iBAAO,EAAC,IAAI,CAAC,CAAC;IACtD,MAAM,aAAa,GAAwB,IAAA,iBAAO,EAAC,YAAY,CAAC,CAAC;IACjE,2EAA2E;IAC3E,4DAA4D;IAC5D,MAAM,MAAM,GAAyB,uBAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACpE,MAAM,UAAU,GACd,KAAK,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,aAAa,GACjB,KAAK,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC/B,yEAAyE;IACzE,MAAM,IAAI,GAAwB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CACtD,CAAC,CAAs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C,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,OAAO;YAEvD,OAAO,CAAC,CAAC;QACX,MAAM,KAAK,GAAyB,uBAAU,CAAC,QAAQ,CACrD,uBAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,EAC9B,IAAA,mDAAwB,EAAC,IAAI,EAAE,aAAa,EAAE,aAAa,CAAC,CAC7D,CAAC;QACF,OAAO,CACL,CAAC,uBAAU,CAAC,KAAK,CAAC,uBAAU,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CACxE,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,+IAA+I;AAC/I,MAAM,OAAO,GAAW,IAAI,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IAutoMovieSeededChainFit } from "./IAutoMovieSeededChainFit";
|
|
2
|
+
import type { IFitChainToTargetProps } from "./IFitChainToTargetProps";
|
|
3
|
+
/**
|
|
4
|
+
* Fit a reachable two-bone chain to a model-frame target under the rig's effective ROM, retaining authored non-chain joints. A deterministic finite bend-plane search scores clamped FK and keeps the original pose unless its 1e-7-metre residual bucket improves or equal-bucket continuity improves toward an explicit prior pose; it is a bounded search, not a global-optimum guarantee.
|
|
5
|
+
*
|
|
6
|
+
* For a hinged mid joint (an elbow or a knee, whose abduction is immobile) the swivel parameterisation of Tolani, Goswami and Badler (2000) comes first and wins whenever it reaches: the hinge angle follows from the span and the swivel about the root-to-target axis is swept for the least range-of-motion overshoot and then the least continuous cost of effector-rotation error, swing from the hint's side and turn from the `referencePose` (`fitHingedChainCandidate`), because a free-swing candidate turns the hinge about the plane normal and the clamp of its abduction moves the effector. Otherwise, and for other chains, the bend hint's plane and then the 32-plane sweep follow, the first exact one winning. When nothing reaches, the least clamped residual is returned, so an unreachable target leaves the effector on the reachable shell, not a pretended reach.
|
|
7
|
+
*
|
|
8
|
+
* A hinged chain's answer comes with its seed, the branch and swivel its candidate was chosen at, which a fit of a nearby target continues from (`near`, `IAutoMovieSwivelNear`): that fit refines the seed alone instead of sweeping. The seed is null when another candidate is the answer.
|
|
9
|
+
*
|
|
10
|
+
* With `effectorRotation`, a mid bone that declares a distal twist (a forearm) first takes the twist share of the requested rotation about its own length (swing-twist decomposition), clamped to its range, and the effector the remaining swing, so pronation and supination are the forearm's and the wrist keeps its place.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Prepares actual chain frames, solves analytic two-bone candidates, clamps upper/lower joints to rig ROM and measures their actual effector; residual buckets rank first, then squared sign-insensitive quaternion geodesic distance to the prior pose and finally exact residual.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The bend search (`fitChainBend`) and the effector's orientation (`orientChainEffector`), composed here, while preparation, analytic candidate solve and fast candidate FK have single owners; this split exposes the geometry shared by all bend candidates.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing/invalid/degenerate preparation and analytic solve preserve the original pose; no ideal target measurement replaces post-clamp FK. A 32-angle sweep and ten local halvings bound the heuristic, with 1e-12 continuity and 1e-6 normal-degeneracy thresholds.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States model-metre target, unchanged joints, residual-bucket ranking, prior-pose tie meaning and the bounded-search limitation without claiming every unreachable pin can be solved.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Preparation and authored/reference FK scale with rig/joints; at most34 initial candidates plus at most32minima times20 refinement candidates use constant-size fast FK, though candidate pose copies scale with authored joints. Early exact-bucket/continuity satisfaction stops the search. A hinged chain adds up to two swivel sweeps of 720 decomposed candidates (360 one-degree swivels per bend branch), each with constant-size quaternion work and, with an effector rotation, two more decompositions; they run only when the hint plane misses or a rotation is requested.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All bend candidates share prepared frames/domains and reference-angle maps; only candidate joints and scores vary, while per-frame parent pose changes force new preparation.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Sweep/minima arrays are bounded by32 entries and all temporary poses/maps are released after completion; the caller owns the selected pose, which may be the original, and no handles or background tasks exist.
|
|
19
|
+
*/
|
|
20
|
+
export declare const fitSeededChainToTarget: (props: IFitChainToTargetProps) => IAutoMovieSeededChainFit;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fitSeededChainToTarget = void 0;
|
|
4
|
+
const fitChainBend_1 = require("./fitChainBend");
|
|
5
|
+
const orientChainEffector_1 = require("./orientChainEffector");
|
|
6
|
+
/**
|
|
7
|
+
* Fit a reachable two-bone chain to a model-frame target under the rig's effective ROM, retaining authored non-chain joints. A deterministic finite bend-plane search scores clamped FK and keeps the original pose unless its 1e-7-metre residual bucket improves or equal-bucket continuity improves toward an explicit prior pose; it is a bounded search, not a global-optimum guarantee.
|
|
8
|
+
*
|
|
9
|
+
* For a hinged mid joint (an elbow or a knee, whose abduction is immobile) the swivel parameterisation of Tolani, Goswami and Badler (2000) comes first and wins whenever it reaches: the hinge angle follows from the span and the swivel about the root-to-target axis is swept for the least range-of-motion overshoot and then the least continuous cost of effector-rotation error, swing from the hint's side and turn from the `referencePose` (`fitHingedChainCandidate`), because a free-swing candidate turns the hinge about the plane normal and the clamp of its abduction moves the effector. Otherwise, and for other chains, the bend hint's plane and then the 32-plane sweep follow, the first exact one winning. When nothing reaches, the least clamped residual is returned, so an unreachable target leaves the effector on the reachable shell, not a pretended reach.
|
|
10
|
+
*
|
|
11
|
+
* A hinged chain's answer comes with its seed, the branch and swivel its candidate was chosen at, which a fit of a nearby target continues from (`near`, `IAutoMovieSwivelNear`): that fit refines the seed alone instead of sweeping. The seed is null when another candidate is the answer.
|
|
12
|
+
*
|
|
13
|
+
* With `effectorRotation`, a mid bone that declares a distal twist (a forearm) first takes the twist share of the requested rotation about its own length (swing-twist decomposition), clamped to its range, and the effector the remaining swing, so pronation and supination are the forearm's and the wrist keeps its place.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation Prepares actual chain frames, solves analytic two-bone candidates, clamps upper/lower joints to rig ROM and measures their actual effector; residual buckets rank first, then squared sign-insensitive quaternion geodesic distance to the prior pose and finally exact residual.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The bend search (`fitChainBend`) and the effector's orientation (`orientChainEffector`), composed here, while preparation, analytic candidate solve and fast candidate FK have single owners; this split exposes the geometry shared by all bend candidates.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing/invalid/degenerate preparation and analytic solve preserve the original pose; no ideal target measurement replaces post-clamp FK. A 32-angle sweep and ten local halvings bound the heuristic, with 1e-12 continuity and 1e-6 normal-degeneracy thresholds.
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation States model-metre target, unchanged joints, residual-bucket ranking, prior-pose tie meaning and the bounded-search limitation without claiming every unreachable pin can be solved.
|
|
19
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Preparation and authored/reference FK scale with rig/joints; at most34 initial candidates plus at most32minima times20 refinement candidates use constant-size fast FK, though candidate pose copies scale with authored joints. Early exact-bucket/continuity satisfaction stops the search. A hinged chain adds up to two swivel sweeps of 720 decomposed candidates (360 one-degree swivels per bend branch), each with constant-size quaternion work and, with an effector rotation, two more decompositions; they run only when the hint plane misses or a rotation is requested.
|
|
20
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All bend candidates share prepared frames/domains and reference-angle maps; only candidate joints and scores vary, while per-frame parent pose changes force new preparation.
|
|
21
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Sweep/minima arrays are bounded by32 entries and all temporary poses/maps are released after completion; the caller owns the selected pose, which may be the original, and no handles or background tasks exist.
|
|
22
|
+
*/
|
|
23
|
+
const fitSeededChainToTarget = (input) => {
|
|
24
|
+
const bend = (0, fitChainBend_1.fitChainBend)(input);
|
|
25
|
+
return {
|
|
26
|
+
pose: (0, orientChainEffector_1.orientChainEffector)(input, bend.pose),
|
|
27
|
+
seed: bend.seed,
|
|
28
|
+
...(bend.value === undefined ? {} : { value: bend.value }),
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.fitSeededChainToTarget = fitSeededChainToTarget;
|
|
32
|
+
//# sourceMappingURL=fitSeededChainToTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitSeededChainToTarget.js","sourceRoot":"","sources":["../../src/motion/fitSeededChainToTarget.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAC9C,+DAA4D;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,sBAAsB,GAEH,CAC9B,KAA6B,EACH,EAAE;IAC5B,MAAM,IAAI,GAA6B,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC;IAC3D,OAAO;QACL,IAAI,EAAE,IAAA,yCAAmB,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC;QAC3C,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;KAC3D,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,sBAAsB,GAAtB,sBAAsB,CAWjC"}
|