@automovie/engine 0.1.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/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/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 +5 -0
- package/lib/composition/index.js +5 -0
- 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/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/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/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/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/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 +5 -0
- package/lib/geometry/construction/index.js +5 -0
- 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/index.d.ts +4 -0
- package/lib/geometry/index.js +4 -0
- 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/index.d.ts +1 -0
- package/lib/index.js +1 -0
- 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 +24 -0
- package/lib/kinematics/index.js +24 -0
- 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/index.d.ts +7 -0
- package/lib/math/index.js +7 -0
- 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 +15 -0
- package/lib/motion/index.js +15 -0
- 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/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 +17 -0
- package/lib/physics/index.js +17 -0
- 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/materializeCompiledFormation.js +2 -5
- package/lib/populationRuntime/materializeCompiledFormation.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/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 +6 -0
- package/lib/soft/index.js +6 -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/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/detectFreeFall.js +2 -1
- package/lib/validation/detectFreeFall.js.map +1 -1
- package/lib/validation/index.d.ts +6 -0
- package/lib/validation/index.js +6 -0
- 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/validateBody.d.ts +2 -2
- package/lib/validation/validateBody.js +27 -3
- package/lib/validation/validateBody.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/worldBlock.js +6 -9
- package/lib/worldBlock.js.map +1 -1
- package/package.json +6 -6
- package/src/IAutoMovieFormationPlacement.ts +4 -3
- package/src/anthropometry/AutoMovieHandAnthropometry.ts +65 -0
- package/src/anthropometry/index.ts +1 -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 +5 -0
- 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/createAutoMovieGeometryActorReader.ts +2 -1
- package/src/describeAutoMovieInstanceSetSubject.ts +2 -5
- package/src/film/compileAttach.ts +2 -5
- package/src/film/compileLaunch.ts +5 -4
- package/src/film/propAnchorFrame.ts +3 -6
- package/src/film/stageScene.ts +3 -10
- 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/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 +5 -0
- 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/index.ts +4 -0
- package/src/geometry/markAutoMovieMeshClearance.ts +69 -0
- package/src/geometry/measureAutoMovieMeshDefects.ts +327 -0
- package/src/index.ts +1 -0
- 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 +24 -0
- 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/index.ts +7 -0
- 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 +15 -0
- 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/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 +17 -0
- 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/materializeCompiledFormation.ts +3 -6
- 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/soft/IAutoMovieSoftBodyBoundarySample.ts +3 -0
- package/src/soft/IAutoMovieSoftBodyObserver.ts +36 -0
- package/src/soft/applySoftBodyFriction.ts +65 -0
- package/src/soft/index.ts +6 -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/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/detectFreeFall.ts +3 -2
- package/src/validation/index.ts +6 -0
- package/src/validation/markAutoMovieSlip.ts +65 -0
- package/src/validation/validateAffordance.ts +38 -3
- package/src/validation/validateAffordanceArticulation.ts +311 -0
- package/src/validation/validateBody.ts +80 -3
- package/src/validation/validateJointConstraint.ts +19 -1
- package/src/validation/validateModel.ts +7 -0
- package/src/worldBlock.ts +3 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IAutoMovieSoftBodyDomain } from "@automovie/interface";
|
|
2
|
+
import { ViolationCollector } from "../validation/ViolationCollector";
|
|
3
|
+
/**
|
|
4
|
+
* Validate a soft-body domain's anchors and its named states: the anchors'
|
|
5
|
+
* budget, identities, particles (each held by one anchor only), static
|
|
6
|
+
* positions and moving bindings, then the states' budget, identities and the
|
|
7
|
+
* anchors each poses (declared, posed once, finite). Split from
|
|
8
|
+
* `validateSoftBodyDomain`, which calls it at the same place, so its
|
|
9
|
+
* findings keep their order.
|
|
10
|
+
*
|
|
11
|
+
* @param out The collector the domain's validation writes to.
|
|
12
|
+
* @param root The domain's path.
|
|
13
|
+
* @param domain The domain.
|
|
14
|
+
* @param count The lattice's particle count.
|
|
15
|
+
*
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation States every rule and why the findings keep their order.
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Budget, identity, integer-range and vector admission through the shared primitive validators, and reference joins through the anchors' identity set.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the anchors, then one over the states and their poses.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A second anchor on a particle, a moving anchor with a static position, a blank binding identity and an undeclared or repeated pose are each reported, never repaired.
|
|
20
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in anchors plus state poses, with one identity set per collection.
|
|
21
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the shared primitive validators.
|
|
22
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The identity sets belong to the call; only the caller's collector is written.
|
|
23
|
+
*/
|
|
24
|
+
export declare const validateSoftAnchors: (out: ViolationCollector, root: string, domain: IAutoMovieSoftBodyDomain, count: number) => void;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateSoftAnchors = void 0;
|
|
4
|
+
const SOFT_MAX_ANCHORS_1 = require("./constants/SOFT_MAX_ANCHORS");
|
|
5
|
+
const SOFT_MAX_STATES_1 = require("./constants/SOFT_MAX_STATES");
|
|
6
|
+
const validateSoftBounded_1 = require("./validateSoftBounded");
|
|
7
|
+
const validateSoftIdentity_1 = require("./validateSoftIdentity");
|
|
8
|
+
const validateSoftInteger_1 = require("./validateSoftInteger");
|
|
9
|
+
const validateSoftVector_1 = require("./validateSoftVector");
|
|
10
|
+
/**
|
|
11
|
+
* Validate a soft-body domain's anchors and its named states: the anchors'
|
|
12
|
+
* budget, identities, particles (each held by one anchor only), static
|
|
13
|
+
* positions and moving bindings, then the states' budget, identities and the
|
|
14
|
+
* anchors each poses (declared, posed once, finite). Split from
|
|
15
|
+
* `validateSoftBodyDomain`, which calls it at the same place, so its
|
|
16
|
+
* findings keep their order.
|
|
17
|
+
*
|
|
18
|
+
* @param out The collector the domain's validation writes to.
|
|
19
|
+
* @param root The domain's path.
|
|
20
|
+
* @param domain The domain.
|
|
21
|
+
* @param count The lattice's particle count.
|
|
22
|
+
*
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation States every rule and why the findings keep their order.
|
|
24
|
+
* @evidence contracts/development/implementation.md#principled-implementation Budget, identity, integer-range and vector admission through the shared primitive validators, and reference joins through the anchors' identity set.
|
|
25
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the anchors, then one over the states and their poses.
|
|
26
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A second anchor on a particle, a moving anchor with a static position, a blank binding identity and an undeclared or repeated pose are each reported, never repaired.
|
|
27
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in anchors plus state poses, with one identity set per collection.
|
|
28
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the shared primitive validators.
|
|
29
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The identity sets belong to the call; only the caller's collector is written.
|
|
30
|
+
*/
|
|
31
|
+
const validateSoftAnchors = (out, root, domain, count) => {
|
|
32
|
+
(0, validateSoftBounded_1.validateSoftBounded)(out, `${root}.anchors`, "anchors", domain.anchors.length, SOFT_MAX_ANCHORS_1.SOFT_MAX_ANCHORS);
|
|
33
|
+
const anchorIds = new Set();
|
|
34
|
+
const anchoredParticles = new Set();
|
|
35
|
+
domain.anchors.forEach((anchor, index) => {
|
|
36
|
+
const path = `${root}.anchors[${index}]`;
|
|
37
|
+
(0, validateSoftIdentity_1.validateSoftIdentity)(out, path, "anchor", anchor.id, anchorIds);
|
|
38
|
+
(0, validateSoftInteger_1.validateSoftInteger)(out, `${path}.particle`, "anchor particle", anchor.particle, 0, count - 1);
|
|
39
|
+
if (anchoredParticles.has(anchor.particle))
|
|
40
|
+
out.push("type", `${path}.particle`, `particle ${anchor.particle} is already held by another anchor`, anchor.particle);
|
|
41
|
+
anchoredParticles.add(anchor.particle);
|
|
42
|
+
if (anchor.position !== null)
|
|
43
|
+
(0, validateSoftVector_1.validateSoftVector)(out, `${path}.position`, anchor.position);
|
|
44
|
+
if (anchor.binding !== undefined) {
|
|
45
|
+
if (anchor.position !== null)
|
|
46
|
+
out.push("type", `${path}.position`, "a moving anchor must leave its static world position null", anchor.position);
|
|
47
|
+
if (anchor.binding.kind === "node") {
|
|
48
|
+
if (anchor.binding.node.trim().length === 0)
|
|
49
|
+
out.push("type", `${path}.binding.node`, "moving anchor node identity must be non-empty", anchor.binding.node);
|
|
50
|
+
}
|
|
51
|
+
else if (anchor.binding.actor.trim().length === 0)
|
|
52
|
+
out.push("type", `${path}.binding.actor`, "moving anchor actor identity must be non-empty", anchor.binding.actor);
|
|
53
|
+
(0, validateSoftVector_1.validateSoftVector)(out, `${path}.binding.offset`, anchor.binding.offset);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
(0, validateSoftBounded_1.validateSoftBounded)(out, `${root}.states`, "named states", domain.states.length, SOFT_MAX_STATES_1.SOFT_MAX_STATES);
|
|
57
|
+
const stateIds = new Set();
|
|
58
|
+
domain.states.forEach((state, index) => {
|
|
59
|
+
const path = `${root}.states[${index}]`;
|
|
60
|
+
(0, validateSoftIdentity_1.validateSoftIdentity)(out, path, "named state", state.id, stateIds);
|
|
61
|
+
const posed = new Set();
|
|
62
|
+
state.anchors.forEach((pose, at) => {
|
|
63
|
+
const posePath = `${path}.anchors[${at}]`;
|
|
64
|
+
if (!anchorIds.has(pose.anchor))
|
|
65
|
+
out.push("type", `${posePath}.anchor`, `named state cites anchor "${pose.anchor}", which the domain does not declare`, pose.anchor);
|
|
66
|
+
else if (posed.has(pose.anchor))
|
|
67
|
+
out.push("type", `${posePath}.anchor`, `named state poses anchor "${pose.anchor}" twice`, pose.anchor);
|
|
68
|
+
posed.add(pose.anchor);
|
|
69
|
+
(0, validateSoftVector_1.validateSoftVector)(out, `${posePath}.position`, pose.position);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
exports.validateSoftAnchors = validateSoftAnchors;
|
|
74
|
+
//# sourceMappingURL=validateSoftAnchors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSoftAnchors.js","sourceRoot":"","sources":["../../src/soft/validateSoftAnchors.ts"],"names":[],"mappings":";;;AAQA,mEAAgE;AAChE,iEAA8D;AAC9D,+DAAuE;AACvE,iEAA0E;AAC1E,+DAAuE;AACvE,6DAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,mBAAmB,GAKpB,CACV,GAAuB,EACvB,IAAY,EACZ,MAAgC,EAChC,KAAa,EACP,EAAE;IACR,IAAA,yCAAO,EACL,GAAG,EACH,GAAG,IAAI,UAAU,EACjB,SAAS,EACT,MAAM,CAAC,OAAO,CAAC,MAAM,EACrB,mCAAgB,CACjB,CAAC;IACF,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;IACjD,MAAM,iBAAiB,GAAgB,IAAI,GAAG,EAAU,CAAC;IACzD,MAAM,CAAC,OAAO,CAAC,OAAO,CACpB,CAAC,MAA4B,EAAE,KAAa,EAAQ,EAAE;QACpD,MAAM,IAAI,GAAW,GAAG,IAAI,YAAY,KAAK,GAAG,CAAC;QACjD,IAAA,2CAAQ,EAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QACpD,IAAA,yCAAO,EACL,GAAG,EACH,GAAG,IAAI,WAAW,EAClB,iBAAiB,EACjB,MAAM,CAAC,QAAQ,EACf,CAAC,EACD,KAAK,GAAG,CAAC,CACV,CAAC;QACF,IAAI,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;YACxC,GAAG,CAAC,IAAI,CACN,MAAM,EACN,GAAG,IAAI,WAAW,EAClB,YAAY,MAAM,CAAC,QAAQ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ftBodyDomain = void 0;
|
|
4
4
|
const ViolationCollector_1 = require("../validation/ViolationCollector");
|
|
5
|
-
const SOFT_MAX_ANCHORS_1 = require("./constants/SOFT_MAX_ANCHORS");
|
|
6
5
|
const SOFT_MAX_COLLIDERS_1 = require("./constants/SOFT_MAX_COLLIDERS");
|
|
7
6
|
const SOFT_MAX_ITERATIONS_1 = require("./constants/SOFT_MAX_ITERATIONS");
|
|
8
7
|
const SOFT_MAX_PARTICLES_1 = require("./constants/SOFT_MAX_PARTICLES");
|
|
9
|
-
const SOFT_MAX_STATES_1 = require("./constants/SOFT_MAX_STATES");
|
|
10
8
|
const SOFT_MAX_STEPS_1 = require("./constants/SOFT_MAX_STEPS");
|
|
11
9
|
const softBodyTravelNumber_1 = require("./softBodyTravelNumber");
|
|
10
|
+
const validateSoftAnchors_1 = require("./validateSoftAnchors");
|
|
11
|
+
const validateSoftBounded_1 = require("./validateSoftBounded");
|
|
12
|
+
const validateSoftCompliance_1 = require("./validateSoftCompliance");
|
|
12
13
|
const validateSoftIdentity_1 = require("./validateSoftIdentity");
|
|
13
14
|
const validateSoftInteger_1 = require("./validateSoftInteger");
|
|
14
15
|
const validateSoftNumeric_1 = require("./validateSoftNumeric");
|
|
@@ -74,50 +75,12 @@ const validateSoftBodyDomain = (props) => {
|
|
|
74
75
|
if (row + 1 < rows)
|
|
75
76
|
(0, validateSoftRestCoincidence_1.validateSoftRestCoincidence)(out, root, domain, particle, particle + columns);
|
|
76
77
|
}
|
|
78
|
+
(0, validateSoftCompliance_1.validateSoftCompliance)(out, root, domain);
|
|
77
79
|
const travel = (0, softBodyTravelNumber_1.softBodyTravelNumber)(domain);
|
|
78
80
|
if (travel > 1)
|
|
79
81
|
out.push("range", `${root}.solver.fixedStepSeconds`, `a position-based step may not travel further than the shortest constraint: dt·referenceSpeed/shortestRestLength <= 1, but the travel number is ${travel}`, domain.solver.fixedStepSeconds, Number.isFinite(travel) ? travel - 1 : undefined);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const anchoredParticles = new Set();
|
|
83
|
-
domain.anchors.forEach((anchor, index) => {
|
|
84
|
-
const path = `${root}.anchors[${index}]`;
|
|
85
|
-
(0, validateSoftIdentity_1.validateSoftIdentity)(out, path, "anchor", anchor.id, anchorIds);
|
|
86
|
-
(0, validateSoftInteger_1.validateSoftInteger)(out, `${path}.particle`, "anchor particle", anchor.particle, 0, count - 1);
|
|
87
|
-
if (anchoredParticles.has(anchor.particle))
|
|
88
|
-
out.push("type", `${path}.particle`, `particle ${anchor.particle} is already held by another anchor`, anchor.particle);
|
|
89
|
-
anchoredParticles.add(anchor.particle);
|
|
90
|
-
if (anchor.position !== null)
|
|
91
|
-
(0, validateSoftVector_1.validateSoftVector)(out, `${path}.position`, anchor.position);
|
|
92
|
-
if (anchor.binding !== undefined) {
|
|
93
|
-
if (anchor.position !== null)
|
|
94
|
-
out.push("type", `${path}.position`, "a moving anchor must leave its static world position null", anchor.position);
|
|
95
|
-
if (anchor.binding.kind === "node") {
|
|
96
|
-
if (anchor.binding.node.trim().length === 0)
|
|
97
|
-
out.push("type", `${path}.binding.node`, "moving anchor node identity must be non-empty", anchor.binding.node);
|
|
98
|
-
}
|
|
99
|
-
else if (anchor.binding.actor.trim().length === 0)
|
|
100
|
-
out.push("type", `${path}.binding.actor`, "moving anchor actor identity must be non-empty", anchor.binding.actor);
|
|
101
|
-
(0, validateSoftVector_1.validateSoftVector)(out, `${path}.binding.offset`, anchor.binding.offset);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
bounded(out, `${root}.states`, "named states", domain.states.length, SOFT_MAX_STATES_1.SOFT_MAX_STATES);
|
|
105
|
-
const stateIds = new Set();
|
|
106
|
-
domain.states.forEach((state, index) => {
|
|
107
|
-
const path = `${root}.states[${index}]`;
|
|
108
|
-
(0, validateSoftIdentity_1.validateSoftIdentity)(out, path, "named state", state.id, stateIds);
|
|
109
|
-
const posed = new Set();
|
|
110
|
-
state.anchors.forEach((pose, at) => {
|
|
111
|
-
const posePath = `${path}.anchors[${at}]`;
|
|
112
|
-
if (!anchorIds.has(pose.anchor))
|
|
113
|
-
out.push("type", `${posePath}.anchor`, `named state cites anchor "${pose.anchor}", which the domain does not declare`, pose.anchor);
|
|
114
|
-
else if (posed.has(pose.anchor))
|
|
115
|
-
out.push("type", `${posePath}.anchor`, `named state poses anchor "${pose.anchor}" twice`, pose.anchor);
|
|
116
|
-
posed.add(pose.anchor);
|
|
117
|
-
(0, validateSoftVector_1.validateSoftVector)(out, `${posePath}.position`, pose.position);
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
bounded(out, `${root}.colliders`, "colliders", domain.colliders.length, SOFT_MAX_COLLIDERS_1.SOFT_MAX_COLLIDERS);
|
|
82
|
+
(0, validateSoftAnchors_1.validateSoftAnchors)(out, root, domain, count);
|
|
83
|
+
(0, validateSoftBounded_1.validateSoftBounded)(out, `${root}.colliders`, "colliders", domain.colliders.length, SOFT_MAX_COLLIDERS_1.SOFT_MAX_COLLIDERS);
|
|
121
84
|
const colliderIds = new Set();
|
|
122
85
|
domain.colliders.forEach((collider, index) => {
|
|
123
86
|
const path = `${root}.colliders[${index}]`;
|
|
@@ -208,9 +171,4 @@ const length = (out, path, label, actual, expected) => {
|
|
|
208
171
|
if (actual !== expected)
|
|
209
172
|
out.push("type", path, `${label} must hold exactly ${expected} values, but held ${actual}`, actual);
|
|
210
173
|
};
|
|
211
|
-
/** A declared collection that must stay inside its budget. */
|
|
212
|
-
const bounded = (out, path, label, actual, budget) => {
|
|
213
|
-
if (actual > budget)
|
|
214
|
-
out.push("range", path, `a soft body may declare at most ${budget} ${label}, but declared ${actual}`, actual, actual - budget);
|
|
215
|
-
};
|
|
216
174
|
//# sourceMappingURL=validateSoftBodyDomain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateSoftBodyDomain.js","sourceRoot":"","sources":["../../src/soft/validateSoftBodyDomain.ts"],"names":[],"mappings":";;;AAUA,yEAAsE;AACtE,mEA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AG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAE7E,0EAA0E;AAC1E,MAAM,MAAM,GAMA,CACV,GAAuB,EACvB,IAAY,EACZ,KAAa,EACb,MAAc,EACd,QAAgB,EACV,EAAE;IACR,IAAI,MAAM,KAAK,QAAQ;QACrB,GAAG,CAAC,IAAI,CACN,MAAM,EACN,IAAI,EACJ,GAAG,KAAK,sBAAsB,QAAQ,qBAAqB,MAAM,EAAE,EACnE,MAAM,CACP,CAAC;AACN,CAAC,CAAC;AAEF,8DAA8D;AAC9D,MAAM,OAAO,GAMD,CACV,GAAuB,EACvB,IAAY,EACZ,KAAa,EACb,MAAc,EACd,MAAc,EACR,EAAE;IACR,IAAI,MAAM,GAAG,MAAM;QACjB,GAAG,CAAC,IAAI,CACN,OAAO,EACP,IAAI,EACJ,mCAAmC,MAAM,IAAI,KAAK,kBAAkB,MAAM,EAAE,EAC5E,MAAM,EACN,MAAM,GAAG,MAAM,CAChB,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"validateSoftBodyDomain.js","sourceRoot":"","sources":["../../src/soft/validateSoftBodyDomain.ts"],"names":[],"mappings":";;;AAOA,yEAAsE;AACtE,uEAAoE;AACpE,yEAAsE;AACtE,uEAAoE;AACpE,+DAA4D;AAC5D,iEAA8D;AAC9D,+DAA4D;AAC5D,+DAAuE;AACvE,qEAAkE;AAClE,iEAA0E;AAC1E,+DAAuE;AACvE,+DAAuE;AACvE,+EAA0F;AAC1F,6DAAoE;AAEpE;;;;;;;;;;GAUG;AACI,MAAM,sBAAsB,GAEN,CAAC,KAE7B,EAAwB,EAAE;IACzB,MAAM,EAAE,MAAM,EAAE,GAAiB,KAAK,CAAC;IACvC,MAAM,GAAG,GAAuB,IAAI,uCAAkB,EAAE,CAAC;IACzD,MAAM,IAAI,GAAW,QAAQ,CA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Q,CAAC,GAAG,CAAC,CAAC;QACxB,KAAK,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACxB,KAAK,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACxB,KAAK,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACxB,KAAK,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,+CAA+C;AAC/C,MAAM,SAAS,GAA0C,CACvD,MAAyB,EACjB,EAAE,CACV,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAE7E,0EAA0E;AAC1E,MAAM,MAAM,GAMA,CACV,GAAuB,EACvB,IAAY,EACZ,KAAa,EACb,MAAc,EACd,QAAgB,EACV,EAAE;IACR,IAAI,MAAM,KAAK,QAAQ;QACrB,GAAG,CAAC,IAAI,CACN,MAAM,EACN,IAAI,EACJ,GAAG,KAAK,sBAAsB,QAAQ,qBAAqB,MAAM,EAAE,EACnE,MAAM,CACP,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ViolationCollector } from "../validation/ViolationCollector";
|
|
2
|
+
/**
|
|
3
|
+
* Report a declared collection of a soft body that is larger than its
|
|
4
|
+
* budget: its path, its size and how far past the budget it runs.
|
|
5
|
+
*
|
|
6
|
+
* @param out The collector.
|
|
7
|
+
* @param path The collection's path.
|
|
8
|
+
* @param label The collection's name in the message.
|
|
9
|
+
* @param actual The declared size.
|
|
10
|
+
* @param budget The largest size admitted.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what is reported and with which numbers.
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation One comparison against the stated budget.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One condition, one finding.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A collection at its budget passes; one past it is reported with its excess, never truncated.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Nothing to reuse.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Writes only the caller's collector.
|
|
19
|
+
*/
|
|
20
|
+
export declare const validateSoftBounded: (out: ViolationCollector, path: string, label: string, actual: number, budget: number) => void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateSoftBounded = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Report a declared collection of a soft body that is larger than its
|
|
6
|
+
* budget: its path, its size and how far past the budget it runs.
|
|
7
|
+
*
|
|
8
|
+
* @param out The collector.
|
|
9
|
+
* @param path The collection's path.
|
|
10
|
+
* @param label The collection's name in the message.
|
|
11
|
+
* @param actual The declared size.
|
|
12
|
+
* @param budget The largest size admitted.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what is reported and with which numbers.
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation One comparison against the stated budget.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One condition, one finding.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A collection at its budget passes; one past it is reported with its excess, never truncated.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Nothing to reuse.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Writes only the caller's collector.
|
|
21
|
+
*/
|
|
22
|
+
const validateSoftBounded = (out, path, label, actual, budget) => {
|
|
23
|
+
if (actual > budget)
|
|
24
|
+
out.push("range", path, `a soft body may declare at most ${budget} ${label}, but declared ${actual}`, actual, actual - budget);
|
|
25
|
+
};
|
|
26
|
+
exports.validateSoftBounded = validateSoftBounded;
|
|
27
|
+
//# sourceMappingURL=validateSoftBounded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSoftBounded.js","sourceRoot":"","sources":["../../src/soft/validateSoftBounded.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,mBAAmB,GAMpB,CACV,GAAuB,EACvB,IAAY,EACZ,KAAa,EACb,MAAc,EACd,MAAc,EACR,EAAE;IACR,IAAI,MAAM,GAAG,MAAM;QACjB,GAAG,CAAC,IAAI,CACN,OAAO,EACP,IAAI,EACJ,mCAAmC,MAAM,IAAI,KAAK,kBAAkB,MAAM,EAAE,EAC5E,MAAM,EACN,MAAM,GAAG,MAAM,CAChB,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,mBAAmB,GAAnB,mBAAmB,CAqB9B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAutoMovieSoftBodyDomain } from "@automovie/interface";
|
|
2
|
+
import { ViolationCollector } from "../validation/ViolationCollector";
|
|
3
|
+
/**
|
|
4
|
+
* Admit a domain's compliance and contact: every compliance finite and not
|
|
5
|
+
* negative, the thickness finite and positive, the friction finite and not
|
|
6
|
+
* negative; and, when a cord asks for self-collision, a step that cannot
|
|
7
|
+
* carry a segment past another unseen.
|
|
8
|
+
*
|
|
9
|
+
* A cord's self-contact is found at the end of a step, so a segment that
|
|
10
|
+
* travels farther than the cord's radius in one step can pass through
|
|
11
|
+
* another between two checks. The domain's declared design speed bounds the
|
|
12
|
+
* travel: `fixedStepSeconds * referenceSpeed <= thickness` is required, the
|
|
13
|
+
* same declared-speed premise the structural travel number rests on. Self
|
|
14
|
+
* collision is evaluated only on a cord, a one-wide lattice; a sheet that
|
|
15
|
+
* asks for it is refused, since the solver does not evaluate cloth on
|
|
16
|
+
* cloth.
|
|
17
|
+
*
|
|
18
|
+
* @param out The collector the domain's validation writes to.
|
|
19
|
+
* @param root The domain's path.
|
|
20
|
+
* @param domain The domain.
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/common.md#meaningful-documentation States every rule, the tunnelling premise and the sheet refusal.
|
|
23
|
+
* @evidence contracts/development/implementation.md#principled-implementation Range checks through the shared numeric validator, and the travel bound of a discrete contact check against the cord's radius.
|
|
24
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function the domain's validation calls, so the domain's own validator does not grow.
|
|
25
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The travel bound is a declared-speed premise, not a proof of continuous collision; it is stated as such.
|
|
26
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
27
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Nothing to reuse.
|
|
28
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Writes only the caller's collector.
|
|
29
|
+
*/
|
|
30
|
+
export declare const validateSoftCompliance: (out: ViolationCollector, root: string, domain: IAutoMovieSoftBodyDomain) => void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateSoftCompliance = void 0;
|
|
4
|
+
const validateSoftNumeric_1 = require("./validateSoftNumeric");
|
|
5
|
+
/**
|
|
6
|
+
* Admit a domain's compliance and contact: every compliance finite and not
|
|
7
|
+
* negative, the thickness finite and positive, the friction finite and not
|
|
8
|
+
* negative; and, when a cord asks for self-collision, a step that cannot
|
|
9
|
+
* carry a segment past another unseen.
|
|
10
|
+
*
|
|
11
|
+
* A cord's self-contact is found at the end of a step, so a segment that
|
|
12
|
+
* travels farther than the cord's radius in one step can pass through
|
|
13
|
+
* another between two checks. The domain's declared design speed bounds the
|
|
14
|
+
* travel: `fixedStepSeconds * referenceSpeed <= thickness` is required, the
|
|
15
|
+
* same declared-speed premise the structural travel number rests on. Self
|
|
16
|
+
* collision is evaluated only on a cord, a one-wide lattice; a sheet that
|
|
17
|
+
* asks for it is refused, since the solver does not evaluate cloth on
|
|
18
|
+
* cloth.
|
|
19
|
+
*
|
|
20
|
+
* @param out The collector the domain's validation writes to.
|
|
21
|
+
* @param root The domain's path.
|
|
22
|
+
* @param domain The domain.
|
|
23
|
+
*
|
|
24
|
+
* @evidence contracts/development/common.md#meaningful-documentation States every rule, the tunnelling premise and the sheet refusal.
|
|
25
|
+
* @evidence contracts/development/implementation.md#principled-implementation Range checks through the shared numeric validator, and the travel bound of a discrete contact check against the cord's radius.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function the domain's validation calls, so the domain's own validator does not grow.
|
|
27
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The travel bound is a declared-speed premise, not a proof of continuous collision; it is stated as such.
|
|
28
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Nothing to reuse.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Writes only the caller's collector.
|
|
31
|
+
*/
|
|
32
|
+
const validateSoftCompliance = (out, root, domain) => {
|
|
33
|
+
const compliance = domain.solver.compliance ?? null;
|
|
34
|
+
if (compliance !== null)
|
|
35
|
+
for (const family of ["structural", "shear", "bend"])
|
|
36
|
+
(0, validateSoftNumeric_1.validateSoftNumeric)(out, `${root}.solver.compliance.${family}`, `${family} compliance`, compliance[family], 0, false, Infinity);
|
|
37
|
+
const contact = domain.contact ?? null;
|
|
38
|
+
if (contact !== null) {
|
|
39
|
+
(0, validateSoftNumeric_1.validateSoftNumeric)(out, `${root}.contact.thickness`, "contact thickness", contact.thickness, 0, true, Infinity);
|
|
40
|
+
(0, validateSoftNumeric_1.validateSoftNumeric)(out, `${root}.contact.friction`, "contact friction", contact.friction, 0, false, Infinity);
|
|
41
|
+
}
|
|
42
|
+
if (!domain.selfCollision || contact === null)
|
|
43
|
+
return;
|
|
44
|
+
const cord = domain.lattice.columns === 1 || domain.lattice.rows === 1;
|
|
45
|
+
if (!cord) {
|
|
46
|
+
out.push("type", `${root}.selfCollision`, "self-collision is evaluated only on a cord, a one-wide lattice", domain.selfCollision);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const travel = domain.solver.fixedStepSeconds * domain.solver.referenceSpeed;
|
|
50
|
+
if (travel > contact.thickness)
|
|
51
|
+
out.push("range", `${root}.solver.fixedStepSeconds`, `a cord's segment may not travel further than its radius in one step: fixedStepSeconds·referenceSpeed <= thickness (${contact.thickness}), but travels ${travel}`, domain.solver.fixedStepSeconds, travel - contact.thickness);
|
|
52
|
+
};
|
|
53
|
+
exports.validateSoftCompliance = validateSoftCompliance;
|
|
54
|
+
//# sourceMappingURL=validateSoftCompliance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSoftCompliance.js","sourceRoot":"","sources":["../../src/soft/validateSoftCompliance.ts"],"names":[],"mappings":";;;AAOA,+DAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,MAAM,sBAAsB,GAIvB,CACV,GAAuB,EACvB,IAAY,EACZ,MAAgC,EAC1B,EAAE;IACR,MAAM,UAAU,GACd,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,IAAI,CAAC;IACnC,IAAI,UAAU,KAAK,IAAI;QACrB,KAAK,MAAM,MAAM,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAU;YAC3D,IAAA,yCAAO,EACL,GAAG,EACH,GAAG,IAAI,sBAAsB,MAAM,EAAE,EACrC,GAAG,MAAM,aAAa,EACtB,UAAU,CAAC,MAAM,CAAC,EAClB,CAAC,EACD,KAAK,EACL,Q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ordance } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Coordinates of coupled articulations: one independent degree of freedom,
|
|
4
|
+
* reversible authored inputs and the actual travel of a requested joint.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the coordinate operations and their travel units, domain and failure results.
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation A follows chain relates travel coordinates, independently of spatial rides; an input names one coordinate and resolves to its independent leader in that leader's unit.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Engine owns the kinds, independent leader, admitted input and current travel used by archetype posing and human prop writers.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Reads the existing affordance records and coupling functions; no producer or action names enter the calculation.
|
|
10
|
+
*/
|
|
11
|
+
export declare namespace AffordanceArticulation {
|
|
12
|
+
/** The kinds whose travel moves parts and carried affordances. */
|
|
13
|
+
const KINDS: ReadonlySet<IAutoMovieAffordance["kind"]>;
|
|
14
|
+
/**
|
|
15
|
+
* An independent input, or the coordinate where its upstream resolution failed.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation Success gives the independent id and travel; failure gives the offending id, travel, reason kind and leader when one was resolved.
|
|
18
|
+
* @evidence contracts/development/design.md#principled-representation A discriminated result keeps failed input admission apart from a usable independent coordinate; each travel uses its named articulation's unit.
|
|
19
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Returned by input; archetypes own their structured refusal and motion reads successful coordinates to recover a joint's current travel.
|
|
20
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No exception class crosses package boundaries; the optional leader is diagnostic context present only after a coupling is resolved.
|
|
21
|
+
*/
|
|
22
|
+
type Input = {
|
|
23
|
+
success: true;
|
|
24
|
+
id: string;
|
|
25
|
+
travel: number;
|
|
26
|
+
} | {
|
|
27
|
+
success: false;
|
|
28
|
+
id: string;
|
|
29
|
+
travel: number;
|
|
30
|
+
kind: "reference" | "range" | "follower" | "inverse";
|
|
31
|
+
leader?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The independent articulation upstream of a coordinate, or null for an unknown, non-articulating or cyclic chain. Reversibility concerns input permission, not which degree of freedom a writer addresses.
|
|
35
|
+
*
|
|
36
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the coordinate identity, failure cases and distinction from reverse input permission.
|
|
37
|
+
* @evidence contracts/development/implementation.md#principled-implementation Walk only follows references to the terminal articulation, with a visited set; spatial rides never change coordinate identity.
|
|
38
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the terminal id of the shared chain walk.
|
|
39
|
+
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Contains no arithmetic or fallback coordinate.
|
|
40
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(D) time and space for follows depth D, bounded by the model's affordances.
|
|
41
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure lookup over caller-owned affordances; a performance keeps the result with its immutable writer list.
|
|
42
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing across calls.
|
|
43
|
+
*/
|
|
44
|
+
function leader(byId: ReadonlyMap<string, IAutoMovieAffordance>, id: string): string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Admit one authored input and resolve it through explicitly reversible couplings to its independent leader, checking every joint's legal range. Input records remain unchanged; a caller admitting a whole authored state must also refuse duplicate independent inputs.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/development/common.md#meaningful-documentation States units, domain checks, reversible permission, immutability, failures and the caller's duplicate-input responsibility.
|
|
49
|
+
* @evidence contracts/development/implementation.md#principled-implementation Resolve the acyclic chain, check the requested joint, then invert each permitted coupling over its leader's legal domain with affordanceLeadingTravel. Endpoint recovery uses exact forward images, not a tolerance.
|
|
50
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One chain walk, then one upstream admission pass returning either a coordinate or the first failed admission.
|
|
51
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Never reverses an unmarked coupling, clamps a request or chooses among duplicate inputs.
|
|
52
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(D + T) work and O(D) space for chain depth D and inverse table rows T along it.
|
|
53
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares coupling inversion and travel ranges with model admission and forward posing; no cross-call cache.
|
|
54
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Temporary path data is released on return.
|
|
55
|
+
*/
|
|
56
|
+
function input(byId: ReadonlyMap<string, IAutoMovieAffordance>, id: string, value: number): Input;
|
|
57
|
+
/**
|
|
58
|
+
* A joint's actual travel from a state containing at most one authored input per independent degree of freedom; a degree without an input starts at its leader's zero. Null means the joint, its relevant input or its chain is invalid or duplicated.
|
|
59
|
+
*
|
|
60
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the state's meaning, zero default, result unit and null failures.
|
|
61
|
+
* @evidence contracts/development/implementation.md#principled-implementation Find the requested joint's independent degree, normalize that degree's authored coordinate with input, then apply its forward coupling chain in reverse path order.
|
|
62
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Resolve the path, find its one input, then walk forward to the joint.
|
|
63
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not treat an absent follower key as zero when its leader or another reversible coordinate has already moved it.
|
|
64
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(S times D + T) work for S state inputs, maximum chain depth D and tables T inverted on the relevant input; paths use O(D) temporary space. Operations read a small prop state once when planning their start.
|
|
65
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses input and the one forward coupling owner; no duplicated inverse arithmetic or retained state.
|
|
66
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing across calls.
|
|
67
|
+
*/
|
|
68
|
+
function travel(byId: ReadonlyMap<string, IAutoMovieAffordance>, state: Readonly<Record<string, number>>, id: string): number | null;
|
|
69
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AffordanceArticulation = void 0;
|
|
4
|
+
const affordanceFollowedTravel_1 = require("./affordanceFollowedTravel");
|
|
5
|
+
const affordanceLeadingTravel_1 = require("./affordanceLeadingTravel");
|
|
6
|
+
const affordanceTravelRange_1 = require("./affordanceTravelRange");
|
|
7
|
+
/**
|
|
8
|
+
* Coordinates of coupled articulations: one independent degree of freedom,
|
|
9
|
+
* reversible authored inputs and the actual travel of a requested joint.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the coordinate operations and their travel units, domain and failure results.
|
|
12
|
+
* @evidence contracts/development/design.md#principled-representation A follows chain relates travel coordinates, independently of spatial rides; an input names one coordinate and resolves to its independent leader in that leader's unit.
|
|
13
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Engine owns the kinds, independent leader, admitted input and current travel used by archetype posing and human prop writers.
|
|
14
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Reads the existing affordance records and coupling functions; no producer or action names enter the calculation.
|
|
15
|
+
*/
|
|
16
|
+
var AffordanceArticulation;
|
|
17
|
+
(function (AffordanceArticulation) {
|
|
18
|
+
/** The kinds whose travel moves parts and carried affordances. */
|
|
19
|
+
AffordanceArticulation.KINDS = new Set([
|
|
20
|
+
"hinge",
|
|
21
|
+
"slider",
|
|
22
|
+
"knob",
|
|
23
|
+
"button",
|
|
24
|
+
"trigger",
|
|
25
|
+
"crank",
|
|
26
|
+
"wheel",
|
|
27
|
+
"pedal",
|
|
28
|
+
]);
|
|
29
|
+
/**
|
|
30
|
+
* The independent articulation upstream of a coordinate, or null for an unknown, non-articulating or cyclic chain. Reversibility concerns input permission, not which degree of freedom a writer addresses.
|
|
31
|
+
*
|
|
32
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the coordinate identity, failure cases and distinction from reverse input permission.
|
|
33
|
+
* @evidence contracts/development/implementation.md#principled-implementation Walk only follows references to the terminal articulation, with a visited set; spatial rides never change coordinate identity.
|
|
34
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Read the terminal id of the shared chain walk.
|
|
35
|
+
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Contains no arithmetic or fallback coordinate.
|
|
36
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(D) time and space for follows depth D, bounded by the model's affordances.
|
|
37
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure lookup over caller-owned affordances; a performance keeps the result with its immutable writer list.
|
|
38
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing across calls.
|
|
39
|
+
*/
|
|
40
|
+
function leader(byId, id) {
|
|
41
|
+
const path = chain(byId, id);
|
|
42
|
+
return path === null ? null : path[path.length - 1].id;
|
|
43
|
+
}
|
|
44
|
+
AffordanceArticulation.leader = leader;
|
|
45
|
+
/**
|
|
46
|
+
* Admit one authored input and resolve it through explicitly reversible couplings to its independent leader, checking every joint's legal range. Input records remain unchanged; a caller admitting a whole authored state must also refuse duplicate independent inputs.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/development/common.md#meaningful-documentation States units, domain checks, reversible permission, immutability, failures and the caller's duplicate-input responsibility.
|
|
49
|
+
* @evidence contracts/development/implementation.md#principled-implementation Resolve the acyclic chain, check the requested joint, then invert each permitted coupling over its leader's legal domain with affordanceLeadingTravel. Endpoint recovery uses exact forward images, not a tolerance.
|
|
50
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One chain walk, then one upstream admission pass returning either a coordinate or the first failed admission.
|
|
51
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Never reverses an unmarked coupling, clamps a request or chooses among duplicate inputs.
|
|
52
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(D + T) work and O(D) space for chain depth D and inverse table rows T along it.
|
|
53
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares coupling inversion and travel ranges with model admission and forward posing; no cross-call cache.
|
|
54
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Temporary path data is released on return.
|
|
55
|
+
*/
|
|
56
|
+
function input(byId, id, value) {
|
|
57
|
+
const path = chain(byId, id);
|
|
58
|
+
if (path === null)
|
|
59
|
+
return { success: false, kind: "reference", id, travel: value };
|
|
60
|
+
let travel = value;
|
|
61
|
+
for (let k = 0; k < path.length; k++) {
|
|
62
|
+
const at = path[k];
|
|
63
|
+
const { minimum, maximum } = (0, affordanceTravelRange_1.affordanceTravelRange)(at);
|
|
64
|
+
if (!Number.isFinite(travel) ||
|
|
65
|
+
(minimum !== null && travel < minimum) ||
|
|
66
|
+
(maximum !== null && travel > maximum))
|
|
67
|
+
return { success: false, kind: "range", id: at.id, travel };
|
|
68
|
+
if (at.follows === undefined)
|
|
69
|
+
return { success: true, id: at.id, travel };
|
|
70
|
+
if (at.follows.reversible !== true)
|
|
71
|
+
return {
|
|
72
|
+
success: false,
|
|
73
|
+
kind: "follower",
|
|
74
|
+
id: at.id,
|
|
75
|
+
travel,
|
|
76
|
+
leader: at.follows.id,
|
|
77
|
+
};
|
|
78
|
+
const leading = (0, affordanceLeadingTravel_1.affordanceLeadingTravel)(at.follows, travel, (0, affordanceTravelRange_1.affordanceTravelRange)(path[k + 1]));
|
|
79
|
+
if (leading === null)
|
|
80
|
+
return {
|
|
81
|
+
success: false,
|
|
82
|
+
kind: "inverse",
|
|
83
|
+
id: at.id,
|
|
84
|
+
travel,
|
|
85
|
+
leader: at.follows.id,
|
|
86
|
+
};
|
|
87
|
+
travel = leading;
|
|
88
|
+
}
|
|
89
|
+
return { success: false, kind: "reference", id, travel: value };
|
|
90
|
+
}
|
|
91
|
+
AffordanceArticulation.input = input;
|
|
92
|
+
/**
|
|
93
|
+
* A joint's actual travel from a state containing at most one authored input per independent degree of freedom; a degree without an input starts at its leader's zero. Null means the joint, its relevant input or its chain is invalid or duplicated.
|
|
94
|
+
*
|
|
95
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the state's meaning, zero default, result unit and null failures.
|
|
96
|
+
* @evidence contracts/development/implementation.md#principled-implementation Find the requested joint's independent degree, normalize that degree's authored coordinate with input, then apply its forward coupling chain in reverse path order.
|
|
97
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Resolve the path, find its one input, then walk forward to the joint.
|
|
98
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not treat an absent follower key as zero when its leader or another reversible coordinate has already moved it.
|
|
99
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms O(S times D + T) work for S state inputs, maximum chain depth D and tables T inverted on the relevant input; paths use O(D) temporary space. Operations read a small prop state once when planning their start.
|
|
100
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses input and the one forward coupling owner; no duplicated inverse arithmetic or retained state.
|
|
101
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing across calls.
|
|
102
|
+
*/
|
|
103
|
+
function travel(byId, state, id) {
|
|
104
|
+
const path = chain(byId, id);
|
|
105
|
+
if (path === null)
|
|
106
|
+
return null;
|
|
107
|
+
const degree = path[path.length - 1].id;
|
|
108
|
+
let value = 0;
|
|
109
|
+
let found = false;
|
|
110
|
+
for (const [authored, requested] of Object.entries(state)) {
|
|
111
|
+
if (leader(byId, authored) !== degree)
|
|
112
|
+
continue;
|
|
113
|
+
if (found)
|
|
114
|
+
return null;
|
|
115
|
+
const resolved = input(byId, authored, requested);
|
|
116
|
+
if (!resolved.success)
|
|
117
|
+
return null;
|
|
118
|
+
found = true;
|
|
119
|
+
value = resolved.travel;
|
|
120
|
+
}
|
|
121
|
+
for (let k = path.length - 2; k >= 0; k--)
|
|
122
|
+
value = (0, affordanceFollowedTravel_1.affordanceFollowedTravel)(path[k].follows, value);
|
|
123
|
+
return Number.isFinite(value) ? value : null;
|
|
124
|
+
}
|
|
125
|
+
AffordanceArticulation.travel = travel;
|
|
126
|
+
/** A coordinate's articulations, upstream through follows, or null for an invalid reference or cycle. */
|
|
127
|
+
function chain(byId, id) {
|
|
128
|
+
const path = [];
|
|
129
|
+
const seen = new Set();
|
|
130
|
+
let at = byId.get(id);
|
|
131
|
+
for (;;) {
|
|
132
|
+
if (at === undefined || !AffordanceArticulation.KINDS.has(at.kind) || seen.has(at.id))
|
|
133
|
+
return null;
|
|
134
|
+
path.push(at);
|
|
135
|
+
seen.add(at.id);
|
|
136
|
+
if (at.follows === undefined)
|
|
137
|
+
return path;
|
|
138
|
+
at = byId.get(at.follows.id);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
})(AffordanceArticulation || (exports.AffordanceArticulation = AffordanceArticulation = {}));
|
|
142
|
+
//# sourceMappingURL=AffordanceArticulation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AffordanceArticulation.js","sourceRoot":"","sources":["../../src/validation/AffordanceArticulation.ts"],"names":[],"mappings":";;;AAEA,yEAAsE;AACtE,uEAAoE;AACpE,mEAAgE;AAEhE;;;;;;;;GAQG;AACH,IAAiB,sBAAsB,CA6JtC;AA7JD,WAAiB,sBAAsB;IACrC,kEAAkE;IACrD,4BAAK,GAA8C,IAAI,GAAG,CAAC;QACtE,OAAO;QACP,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,SAAS;QACT,OAAO;QACP,OAAO;QACP,OAAO;KACR,CAAC,CAAC;IAoBH;;;;;;;;;;OAUG;IACH,SAAgB,MAAM,CACpB,IAA+C,EAC/C,EAAU;QAEV,MAAM,IAAI,GAAkC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,EAAE,CAAC;IAC1D,CAAC;IANe,uBAAA,MAAM,SAMrB,CAAA;IAED;;;;;;;;;;OAUG;IACH,SAAgB,KAAK,CACnB,IAA+C,EAC/C,EAAU,EACV,KAA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