@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 @@
|
|
|
1
|
+
{"version":3,"file":"markAutoMovieMeshClearance.js","sourceRoot":"","sources":["../../src/geometry/markAutoMovieMeshClearance.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,oCAA2C,KAM1C;IACC,MAAM,QAAQ,GAAW,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1D,MAAM,IAAI,GAAW,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC,SAAS,CAAC,GAAG,CACxB,CACE,OAAuC,EACvC,OAAe,EACC,EAAE;QAClB,IAAI,OAAO,CAAC,QAAQ,C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F,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IAutoMovieMeshDefect } from "./IAutoMovieMeshDefect";
|
|
2
|
+
/**
|
|
3
|
+
* List every defect of a triangle mesh with the vertices that carry it, so an inspection can draw each one where it is instead of reading a count.
|
|
4
|
+
*
|
|
5
|
+
* `positions` is flat xyz in any one length unit and `indices` holds triangle corners, or is `null` for a non-indexed list whose every three vertices are one triangle. Both are read in place, typed arrays included, and neither is changed. Vertices weld by position: each coordinate is multiplied by `options.weld`, the number of lattice cells per unit of length, and rounded to the nearest whole cell, and vertices in the same cell on all three axes are one corner. The default is `MESH_WELD_GRID`, a nanometre grid when the unit is the metre. Welding by cell is not welding by distance: two points closer than a cell that fall on either side of a rounding boundary stay apart.
|
|
6
|
+
*
|
|
7
|
+
* A triangle whose corners weld onto fewer than three cells is `degenerate` and contributes no edges. Every other triangle contributes its three edges between welded corners. An edge used by exactly one triangle is `open`, by more than two `non-manifold`, and by exactly two that traverse it in the same direction `inconsistent`, which is also what a triangle stored twice reports on all three edges. A non-manifold edge is not tested for winding. `sliver` is reported only when `options.sliver` is given: a triangle on three distinct cells whose aspect, its longest edge squared divided by twice its area, exceeds that limit. The aspect is dimensionless and equals the longest edge over the height standing on it: `2 / sqrt(3)` for an equilateral triangle, 2 for a right isosceles one, and infinite for collinear corners on distinct cells. It is measured on the stored positions, not on the lattice.
|
|
8
|
+
*
|
|
9
|
+
* Defects come in ascending order of the first triangle that carries them. Within one triangle its own `degenerate` or `sliver` defect comes first, then its edges in corner order: corner 0 to 1, 1 to 2, 2 to 0. An edge is listed once, at the first triangle that uses it. The same input always gives the same list.
|
|
10
|
+
*
|
|
11
|
+
* It throws a named `Error` for a position count not divisible by three, a corner count not divisible by three, an index that is not a whole number inside the position buffer, a `weld` or `sliver` that is not positive and finite, a vertex whose lattice coordinate is not finite, and more than 94 906 265 vertices. Only edge incidence is measured: a vertex where two fans touch and surfaces that cross each other are not found here.
|
|
12
|
+
*
|
|
13
|
+
* @param mesh Position and index buffers to measure.
|
|
14
|
+
* @param options `weld` is the lattice's cells per unit of length, default `MESH_WELD_GRID`. `sliver` is the aspect limit above which a triangle is a sliver; absent, no sliver is reported.
|
|
15
|
+
* @returns The defects, empty for a closed, consistently wound mesh without degenerate triangles.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation A half-edge incidence census over position-welded corners: an undirected edge of a closed oriented 2-manifold is used by exactly two triangles in opposite directions, so one use, more than two uses and two same-direction uses are each a defect. Direction is recorded as whether the traversal runs from the lower welded id to the higher. Lattice indices are exact integers up to 2^53; past that the product's own binary64 spacing is wider than a cell and vertices weld by their rounded value. The aspect divides by the cross product's length, which is twice the area. Vertex-manifoldness and self-intersection are outside an edge census and remain unmeasured.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Admission, welding, one census pass and one emission pass, with the welding, the aspect and the edge verdict in local helpers. It does not call `weldMeshVertices` or `triangleIndicesOf`, which take `number[]`, fix the grid and copy the index run, where this must read typed arrays in place under a caller's grid. `inspectAutoMovieMeshTopology` keeps the counts and the volume; this owns the located list.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The default grid is the shared `MESH_WELD_GRID` and the sliver limit is the caller's parameter, with no built-in tolerance. Malformed buffers are refused instead of truncated, degenerate triangles are reported instead of dropped, and a vertex with a non-finite coordinate is refused instead of welded with every other such vertex. The vertex bound is the largest count whose square is a safe integer, which the packed keys need to stay exact.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the buffer layout and unit freedom, the weld rule and its default, each kind's condition, the aspect formula with reference values, the output order, every refusal and what an edge census cannot find.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in vertices V and triangles T. Each vertex costs five hashed lookups that intern its three axis indices, its xy pair and its cell as numbers, and each triangle edge one lookup on the key `low * V + high`; no key is a string, and the packing is collision-free because every interned ordinal is below V. Space is one 32-bit cell id per vertex, one 32-bit edge ordinal per corner, one byte per triangle and two counters and one flag per distinct edge. A `Map` cannot hold more entries than its engine allows, about 16.7 million in V8, which bounds distinct cells and edges below the vertex bound.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call measures the buffers it is given and keeps nothing between calls, so a caller that needs the list twice keeps the first one.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The weld tables, the edge table and the typed arrays are local to one call and are garbage once it returns or throws. Only the returned list survives, and it holds vertex indices, not the mesh.
|
|
24
|
+
*/
|
|
25
|
+
export declare function measureAutoMovieMeshDefects(mesh: {
|
|
26
|
+
positions: ArrayLike<number>;
|
|
27
|
+
indices: ArrayLike<number> | null;
|
|
28
|
+
}, options?: {
|
|
29
|
+
weld?: number;
|
|
30
|
+
sliver?: number;
|
|
31
|
+
}): IAutoMovieMeshDefect[];
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.measureAutoMovieMeshDefects = measureAutoMovieMeshDefects;
|
|
4
|
+
const MESH_WELD_GRID_1 = require("../constants/MESH_WELD_GRID");
|
|
5
|
+
/** Shape state of a triangle with three distinct cells whose aspect is within the limit, or was not asked about. */
|
|
6
|
+
const SOUND = 0;
|
|
7
|
+
/** Shape state of a triangle whose corners weld onto fewer than three cells. */
|
|
8
|
+
const DEGENERATE = 1;
|
|
9
|
+
/** Shape state of a triangle on three distinct cells whose aspect exceeds the limit. */
|
|
10
|
+
const SLIVER = 2;
|
|
11
|
+
/**
|
|
12
|
+
* List every defect of a triangle mesh with the vertices that carry it, so an inspection can draw each one where it is instead of reading a count.
|
|
13
|
+
*
|
|
14
|
+
* `positions` is flat xyz in any one length unit and `indices` holds triangle corners, or is `null` for a non-indexed list whose every three vertices are one triangle. Both are read in place, typed arrays included, and neither is changed. Vertices weld by position: each coordinate is multiplied by `options.weld`, the number of lattice cells per unit of length, and rounded to the nearest whole cell, and vertices in the same cell on all three axes are one corner. The default is `MESH_WELD_GRID`, a nanometre grid when the unit is the metre. Welding by cell is not welding by distance: two points closer than a cell that fall on either side of a rounding boundary stay apart.
|
|
15
|
+
*
|
|
16
|
+
* A triangle whose corners weld onto fewer than three cells is `degenerate` and contributes no edges. Every other triangle contributes its three edges between welded corners. An edge used by exactly one triangle is `open`, by more than two `non-manifold`, and by exactly two that traverse it in the same direction `inconsistent`, which is also what a triangle stored twice reports on all three edges. A non-manifold edge is not tested for winding. `sliver` is reported only when `options.sliver` is given: a triangle on three distinct cells whose aspect, its longest edge squared divided by twice its area, exceeds that limit. The aspect is dimensionless and equals the longest edge over the height standing on it: `2 / sqrt(3)` for an equilateral triangle, 2 for a right isosceles one, and infinite for collinear corners on distinct cells. It is measured on the stored positions, not on the lattice.
|
|
17
|
+
*
|
|
18
|
+
* Defects come in ascending order of the first triangle that carries them. Within one triangle its own `degenerate` or `sliver` defect comes first, then its edges in corner order: corner 0 to 1, 1 to 2, 2 to 0. An edge is listed once, at the first triangle that uses it. The same input always gives the same list.
|
|
19
|
+
*
|
|
20
|
+
* It throws a named `Error` for a position count not divisible by three, a corner count not divisible by three, an index that is not a whole number inside the position buffer, a `weld` or `sliver` that is not positive and finite, a vertex whose lattice coordinate is not finite, and more than 94 906 265 vertices. Only edge incidence is measured: a vertex where two fans touch and surfaces that cross each other are not found here.
|
|
21
|
+
*
|
|
22
|
+
* @param mesh Position and index buffers to measure.
|
|
23
|
+
* @param options `weld` is the lattice's cells per unit of length, default `MESH_WELD_GRID`. `sliver` is the aspect limit above which a triangle is a sliver; absent, no sliver is reported.
|
|
24
|
+
* @returns The defects, empty for a closed, consistently wound mesh without degenerate triangles.
|
|
25
|
+
*
|
|
26
|
+
* @evidence contracts/development/implementation.md#principled-implementation A half-edge incidence census over position-welded corners: an undirected edge of a closed oriented 2-manifold is used by exactly two triangles in opposite directions, so one use, more than two uses and two same-direction uses are each a defect. Direction is recorded as whether the traversal runs from the lower welded id to the higher. Lattice indices are exact integers up to 2^53; past that the product's own binary64 spacing is wider than a cell and vertices weld by their rounded value. The aspect divides by the cross product's length, which is twice the area. Vertex-manifoldness and self-intersection are outside an edge census and remain unmeasured.
|
|
27
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Admission, welding, one census pass and one emission pass, with the welding, the aspect and the edge verdict in local helpers. It does not call `weldMeshVertices` or `triangleIndicesOf`, which take `number[]`, fix the grid and copy the index run, where this must read typed arrays in place under a caller's grid. `inspectAutoMovieMeshTopology` keeps the counts and the volume; this owns the located list.
|
|
28
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The default grid is the shared `MESH_WELD_GRID` and the sliver limit is the caller's parameter, with no built-in tolerance. Malformed buffers are refused instead of truncated, degenerate triangles are reported instead of dropped, and a vertex with a non-finite coordinate is refused instead of welded with every other such vertex. The vertex bound is the largest count whose square is a safe integer, which the packed keys need to stay exact.
|
|
29
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the buffer layout and unit freedom, the weld rule and its default, each kind's condition, the aspect formula with reference values, the output order, every refusal and what an edge census cannot find.
|
|
30
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in vertices V and triangles T. Each vertex costs five hashed lookups that intern its three axis indices, its xy pair and its cell as numbers, and each triangle edge one lookup on the key `low * V + high`; no key is a string, and the packing is collision-free because every interned ordinal is below V. Space is one 32-bit cell id per vertex, one 32-bit edge ordinal per corner, one byte per triangle and two counters and one flag per distinct edge. A `Map` cannot hold more entries than its engine allows, about 16.7 million in V8, which bounds distinct cells and edges below the vertex bound.
|
|
31
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call measures the buffers it is given and keeps nothing between calls, so a caller that needs the list twice keeps the first one.
|
|
32
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The weld tables, the edge table and the typed arrays are local to one call and are garbage once it returns or throws. Only the returned list survives, and it holds vertex indices, not the mesh.
|
|
33
|
+
*/
|
|
34
|
+
function measureAutoMovieMeshDefects(mesh, options) {
|
|
35
|
+
/** Flat xyz buffer, read in place. */
|
|
36
|
+
const positions = mesh.positions;
|
|
37
|
+
/** Triangle corners, or null when every three vertices are one triangle. */
|
|
38
|
+
const indices = mesh.indices;
|
|
39
|
+
/** Lattice cells per unit of length. */
|
|
40
|
+
const weld = options?.weld ?? MESH_WELD_GRID_1.MESH_WELD_GRID;
|
|
41
|
+
/** Aspect limit, or undefined when slivers are not asked about. */
|
|
42
|
+
const sliver = options?.sliver;
|
|
43
|
+
// Refuse malformed buffers and options before anything is allocated.
|
|
44
|
+
if (positions.length % 3 !== 0)
|
|
45
|
+
throw new Error(`measureAutoMovieMeshDefects: positions hold ${positions.length} components, not whole xyz triples`);
|
|
46
|
+
/** Vertices in the position buffer. */
|
|
47
|
+
const vertexCount = positions.length / 3;
|
|
48
|
+
/** Triangle corners in the index run, or in the position run for a non-indexed list. */
|
|
49
|
+
const cornerCount = indices === null ? vertexCount : indices.length;
|
|
50
|
+
if (cornerCount % 3 !== 0)
|
|
51
|
+
throw new Error(`measureAutoMovieMeshDefects: ${cornerCount} triangle corners are not in threes`);
|
|
52
|
+
if (!(Number.isFinite(weld) && weld > 0))
|
|
53
|
+
throw new Error(`measureAutoMovieMeshDefects: weld ${weld} is not a positive finite cell count`);
|
|
54
|
+
if (sliver !== undefined && !(Number.isFinite(sliver) && sliver > 0))
|
|
55
|
+
throw new Error(`measureAutoMovieMeshDefects: sliver limit ${sliver} is not a positive finite aspect`);
|
|
56
|
+
// Every packed key is at most `vertexCount * vertexCount - 1`, so the keys are exact integers only while that square is a safe integer.
|
|
57
|
+
if (vertexCount * vertexCount > Number.MAX_SAFE_INTEGER)
|
|
58
|
+
throw new Error(`measureAutoMovieMeshDefects: ${vertexCount} vertices exceed the 94906265 that edge keys stay exact for`);
|
|
59
|
+
/** The stored vertex index at a corner slot, which for a non-indexed list is the slot itself. */
|
|
60
|
+
const vertexAt = (slot) => indices === null ? slot : indices[slot];
|
|
61
|
+
/** Welded corner id of every vertex. */
|
|
62
|
+
const cellOf = weldCells(positions, vertexCount, weld);
|
|
63
|
+
/** Triangles in the measured run. */
|
|
64
|
+
const triangleCount = cornerCount / 3;
|
|
65
|
+
/** Shape state per triangle: `SOUND`, `DEGENERATE` or `SLIVER`. */
|
|
66
|
+
const shape = new Uint8Array(triangleCount);
|
|
67
|
+
/** Per corner slot, the ordinal of the edge leaving that corner; unread for a degenerate triangle. */
|
|
68
|
+
const edgeOf = new Int32Array(cornerCount);
|
|
69
|
+
/** Edge ordinal by packed pair of welded ids, lower id first. */
|
|
70
|
+
const edges = new Map();
|
|
71
|
+
/** Per edge ordinal, how many triangles use the edge. */
|
|
72
|
+
const uses = [];
|
|
73
|
+
/** Per edge ordinal, how many of those uses run from the lower welded id to the higher. */
|
|
74
|
+
const forward = [];
|
|
75
|
+
/** The current triangle's stored vertex indices, reused across triangles. */
|
|
76
|
+
const corner = [0, 0, 0];
|
|
77
|
+
/** The current triangle's welded ids, reused across triangles. */
|
|
78
|
+
const cell = [0, 0, 0];
|
|
79
|
+
// Census: classify each triangle's shape and count every edge's uses and directions.
|
|
80
|
+
for (let triangle = 0; triangle < triangleCount; ++triangle) {
|
|
81
|
+
for (let k = 0; k < 3; ++k) {
|
|
82
|
+
/** Stored vertex index of this corner, admitted before it addresses a buffer. */
|
|
83
|
+
const vertex = vertexAt(3 * triangle + k);
|
|
84
|
+
if (!(Number.isInteger(vertex) && vertex >= 0 && vertex < vertexCount))
|
|
85
|
+
throw new Error(`measureAutoMovieMeshDefects: index ${vertex} at corner ${3 * triangle + k} is not one of the ${vertexCount} vertices`);
|
|
86
|
+
corner[k] = vertex;
|
|
87
|
+
cell[k] = cellOf[vertex];
|
|
88
|
+
}
|
|
89
|
+
// Two corners in one cell leave no triangle and no edge between them, so the triangle stays out of the edge table.
|
|
90
|
+
if (cell[0] === cell[1] || cell[1] === cell[2] || cell[2] === cell[0]) {
|
|
91
|
+
shape[triangle] = DEGENERATE;
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
for (let k = 0; k < 3; ++k) {
|
|
95
|
+
/** Welded id the edge leaves. */
|
|
96
|
+
const from = cell[k];
|
|
97
|
+
/** Welded id the edge reaches. */
|
|
98
|
+
const to = cell[(k + 1) % 3];
|
|
99
|
+
/** Ordinal of the undirected edge, new when it equals the count so far. */
|
|
100
|
+
const edge = intern(edges, Math.min(from, to) * vertexCount + Math.max(from, to));
|
|
101
|
+
if (edge === uses.length) {
|
|
102
|
+
uses.push(0);
|
|
103
|
+
forward.push(0);
|
|
104
|
+
}
|
|
105
|
+
uses[edge] = uses[edge] + 1;
|
|
106
|
+
if (from < to)
|
|
107
|
+
forward[edge] = forward[edge] + 1;
|
|
108
|
+
edgeOf[3 * triangle + k] = edge;
|
|
109
|
+
}
|
|
110
|
+
if (sliver !== undefined &&
|
|
111
|
+
aspectOf(positions, corner[0], corner[1], corner[2]) > sliver)
|
|
112
|
+
shape[triangle] = SLIVER;
|
|
113
|
+
}
|
|
114
|
+
/** The located defects, in the documented order. */
|
|
115
|
+
const defects = [];
|
|
116
|
+
/** Per edge ordinal, 1 once its first using triangle is reached, so a defective edge is listed there only. */
|
|
117
|
+
const listed = new Uint8Array(uses.length);
|
|
118
|
+
// Emission: walking triangles in ascending order puts every defect at its first carrying triangle.
|
|
119
|
+
for (let triangle = 0; triangle < triangleCount; ++triangle) {
|
|
120
|
+
/** First corner slot of this triangle. */
|
|
121
|
+
const base = 3 * triangle;
|
|
122
|
+
if (shape[triangle] !== SOUND)
|
|
123
|
+
defects.push({
|
|
124
|
+
kind: shape[triangle] === DEGENERATE ? "degenerate" : "sliver",
|
|
125
|
+
vertices: [vertexAt(base), vertexAt(base + 1), vertexAt(base + 2)],
|
|
126
|
+
});
|
|
127
|
+
if (shape[triangle] === DEGENERATE)
|
|
128
|
+
continue;
|
|
129
|
+
for (let k = 0; k < 3; ++k) {
|
|
130
|
+
/** Ordinal of the edge leaving corner `k`. */
|
|
131
|
+
const edge = edgeOf[base + k];
|
|
132
|
+
if (listed[edge] === 1)
|
|
133
|
+
continue;
|
|
134
|
+
listed[edge] = 1;
|
|
135
|
+
/** The edge's defect class, or null for a sound edge. */
|
|
136
|
+
const kind = edgeKindOf(uses[edge], forward[edge]);
|
|
137
|
+
if (kind === null)
|
|
138
|
+
continue;
|
|
139
|
+
// The first using triangle names the edge's two ends by its own stored indices and traversal.
|
|
140
|
+
defects.push({
|
|
141
|
+
kind,
|
|
142
|
+
vertices: [vertexAt(base + k), vertexAt(base + ((k + 1) % 3))],
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return defects;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Welded corner id of every vertex: vertices whose three rounded lattice indices agree share one id, numbered from zero in first-seen order.
|
|
150
|
+
*
|
|
151
|
+
* Each axis interns its lattice index to an ordinal below the vertex count, then the xy pair and the cell are interned from two such ordinals packed as `first * vertexCount + second`. Both factors are below the vertex count, so distinct pairs never share a key. A `Map` treats `-0` and `0` as one key, so a coordinate that rounds to negative zero welds with zero.
|
|
152
|
+
*
|
|
153
|
+
* @param positions Flat xyz buffer.
|
|
154
|
+
* @param vertexCount Vertices in it, whose square is a safe integer.
|
|
155
|
+
* @param weld Lattice cells per unit of length, positive and finite.
|
|
156
|
+
* @returns One id per vertex.
|
|
157
|
+
*/
|
|
158
|
+
function weldCells(positions, vertexCount, weld) {
|
|
159
|
+
/** The result, one welded id per vertex. */
|
|
160
|
+
const cellOf = new Int32Array(vertexCount);
|
|
161
|
+
/** Ordinal by lattice index, one table per axis. */
|
|
162
|
+
const axes = [new Map(), new Map(), new Map()];
|
|
163
|
+
/** Ordinal by packed x and y ordinals. */
|
|
164
|
+
const pairs = new Map();
|
|
165
|
+
/** Welded id by packed pair ordinal and z ordinal. */
|
|
166
|
+
const cells = new Map();
|
|
167
|
+
/** The current vertex's three axis ordinals, reused across vertices. */
|
|
168
|
+
const ordinal = [0, 0, 0];
|
|
169
|
+
for (let vertex = 0; vertex < vertexCount; ++vertex) {
|
|
170
|
+
for (let axis = 0; axis < 3; ++axis) {
|
|
171
|
+
/** Nearest whole cell along this axis. */
|
|
172
|
+
const lattice = Math.round(positions[3 * vertex + axis] * weld);
|
|
173
|
+
// A NaN, an infinity, a hole in the buffer and a product past the binary64 range all have no cell.
|
|
174
|
+
if (!Number.isFinite(lattice))
|
|
175
|
+
throw new Error(`measureAutoMovieMeshDefects: vertex ${vertex} has no lattice cell, its component ${axis} is ${positions[3 * vertex + axis]}`);
|
|
176
|
+
ordinal[axis] = intern(axes[axis], lattice);
|
|
177
|
+
}
|
|
178
|
+
cellOf[vertex] = intern(cells, intern(pairs, ordinal[0] * vertexCount + ordinal[1]) * vertexCount +
|
|
179
|
+
ordinal[2]);
|
|
180
|
+
}
|
|
181
|
+
return cellOf;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The ordinal of a key in an interning table, assigned from zero in first-seen order.
|
|
185
|
+
*
|
|
186
|
+
* @param table Ordinal by key; a new key is added with the table's size as its ordinal.
|
|
187
|
+
* @param key Key to look up.
|
|
188
|
+
* @returns The key's ordinal, which equals the table's former size when the key is new.
|
|
189
|
+
*/
|
|
190
|
+
function intern(table, key) {
|
|
191
|
+
/** The ordinal already assigned, if any. */
|
|
192
|
+
const known = table.get(key);
|
|
193
|
+
if (known !== undefined)
|
|
194
|
+
return known;
|
|
195
|
+
/** The next free ordinal. */
|
|
196
|
+
const next = table.size;
|
|
197
|
+
table.set(key, next);
|
|
198
|
+
return next;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* A triangle's aspect: its longest edge squared divided by twice its area, dimensionless.
|
|
202
|
+
*
|
|
203
|
+
* Twice the area is the length of the cross product of two edge vectors. With `L` the longest edge and `h` the height standing on it, twice the area is `L h`, so the aspect is `L / h`. Collinear corners give a zero cross product and an infinite aspect.
|
|
204
|
+
*
|
|
205
|
+
* @param positions Flat xyz buffer.
|
|
206
|
+
* @param a First corner's vertex index.
|
|
207
|
+
* @param b Second corner's vertex index.
|
|
208
|
+
* @param c Third corner's vertex index.
|
|
209
|
+
* @returns The aspect, at least `2 / sqrt(3)`.
|
|
210
|
+
*/
|
|
211
|
+
function aspectOf(positions, a, b, c) {
|
|
212
|
+
/** Edge vector from `a` to `b`. */
|
|
213
|
+
const ab = [
|
|
214
|
+
positions[3 * b] - positions[3 * a],
|
|
215
|
+
positions[3 * b + 1] - positions[3 * a + 1],
|
|
216
|
+
positions[3 * b + 2] - positions[3 * a + 2],
|
|
217
|
+
];
|
|
218
|
+
/** Edge vector from `a` to `c`. */
|
|
219
|
+
const ac = [
|
|
220
|
+
positions[3 * c] - positions[3 * a],
|
|
221
|
+
positions[3 * c + 1] - positions[3 * a + 1],
|
|
222
|
+
positions[3 * c + 2] - positions[3 * a + 2],
|
|
223
|
+
];
|
|
224
|
+
/** Squared length of the longest of the three edges, the third being `ac - ab`. */
|
|
225
|
+
const longest = Math.max(ab[0] ** 2 + ab[1] ** 2 + ab[2] ** 2, ac[0] ** 2 + ac[1] ** 2 + ac[2] ** 2, (ac[0] - ab[0]) ** 2 + (ac[1] - ab[1]) ** 2 + (ac[2] - ab[2]) ** 2);
|
|
226
|
+
/** Twice the area: the length of `ab x ac`. */
|
|
227
|
+
const twiceArea = Math.hypot(ab[1] * ac[2] - ab[2] * ac[1], ab[2] * ac[0] - ab[0] * ac[2], ab[0] * ac[1] - ab[1] * ac[0]);
|
|
228
|
+
return longest / twiceArea;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The defect class of an edge from its incidence, or null when it is sound.
|
|
232
|
+
*
|
|
233
|
+
* @param uses Triangles using the edge, at least one.
|
|
234
|
+
* @param forward How many of them traverse it from the lower welded id to the higher.
|
|
235
|
+
* @returns `open` for one use, `non-manifold` for more than two, `inconsistent` for two in the same direction, null for two in opposite directions.
|
|
236
|
+
*/
|
|
237
|
+
function edgeKindOf(uses, forward) {
|
|
238
|
+
if (uses === 1)
|
|
239
|
+
return "open";
|
|
240
|
+
if (uses > 2)
|
|
241
|
+
return "non-manifold";
|
|
242
|
+
return forward === 1 ? null : "inconsistent";
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=measureAutoMovieMeshDefects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measureAutoMovieMeshDefects.js","sourceRoot":"","sources":["../../src/geometry/measureAutoMovieMeshDefects.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAG7D,oHAAoH;AACpH,MAAM,KAAK,GAAW,CAAC,CAAC;AAExB,gFAAgF;AAChF,MAAM,UAAU,GAAW,CAAC,CAAC;AAE7B,wFAAwF;AACxF,MAAM,MAAM,GAAW,CAAC,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qCACE,IAAyE,EACzE,OAA4C;IAE5C,sCAAsC;IACtC,MAAM,SAAS,GAAsB,IAAI,CAAC,SAAS,CAAC;IAEpD,4EAA4E;IAC5E,MAAM,OAAO,GAA6B,IAAI,CAAC,OAAO,CAAC;IAEvD,wCAAwC;IACxC,MAAM,IAAI,GAAW,OAAO,EAAE,IAAI,IAAI,+BAAc,CAAC;IAErD,mEAAmE;IACnE,MAAM,MAAM,GAAuB,OAAO,EAAE,MAAM,CAAC;IAEnD,qEAAqE;IACrE,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,+CAA+C,SAAS,CAAC,MAAM,oCAAoC,CACpG,CAAC;IAEJ,uCAAuC;IACvC,MAAM,WAAW,GAAW,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAEjD,wFAAwF;IACxF,MAAM,WAAW,GAAW,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC5E,IAAI,WAAW,GAAG,CAAC,KAAK,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,gCAAgC,WAAW,qCAAqC,CACjF,CAAC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C,CAAC,cAAc,CAAC;AAC/C,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from "./IAutoMovieSubjectContribution";
|
|
|
17
17
|
export * from "./IAutoMovieSubjectReviewCurrentContext";
|
|
18
18
|
export * from "./IAutoMovieWorldBlock";
|
|
19
19
|
export * from "./analysis";
|
|
20
|
+
export * from "./anthropometry";
|
|
20
21
|
export * from "./architecture";
|
|
21
22
|
export * from "./assertWorldPlacements";
|
|
22
23
|
export * from "./autoMovieInstanceAddress";
|
package/lib/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./IAutoMovieSubjectContribution"), exports);
|
|
|
33
33
|
__exportStar(require("./IAutoMovieSubjectReviewCurrentContext"), exports);
|
|
34
34
|
__exportStar(require("./IAutoMovieWorldBlock"), exports);
|
|
35
35
|
__exportStar(require("./analysis"), exports);
|
|
36
|
+
__exportStar(require("./anthropometry"), exports);
|
|
36
37
|
__exportStar(require("./architecture"), exports);
|
|
37
38
|
__exportStar(require("./assertWorldPlacements"), exports);
|
|
38
39
|
__exportStar(require("./autoMovieInstanceAddress"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,8DAA4C;AAC5C,0DAAwC;AACxC,8EAA4D;AAC5D,6DAA2C;AAC3C,2DAAyC;AACzC,sEAAoD;AACpD,iEAA+C;AAC/C,gEAA8C;AAC9C,oEAAkD;AAClD,iEAA+C;AAC/C,8DAA4C;AAC5C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,kEAAgD;AAChD,0EAAwD;AACxD,yDAAuC;AACvC,6CAA2B;AAC3B,iDAA+B;AAC/B,0DAAwC;AACxC,6DAA2C;AAC3C,iEAA+C;AAC/C,wDAAsC;AACtC,+DAA6C;AAC7C,6DAA2C;AAC3C,4DAA0C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zB,4CAA0B;AAC1B,sEAAoD;AACpD,wCAAsB;AACtB,+DAA6C;AAC7C,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,0CAAwB;AACxB,uDAAqC;AACrC,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,6DAA2C;AAC3C,4DAA0C;AAC1C,+CAA6B;AAC7B,oDAAkC;AAClC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,8CAA4B;AAC5B,iDAA+B;AAC/B,yDAAuC;AACvC,uDAAqC;AACrC,iDAA+B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AutoMovieHumanoidRegion, IAutoMoviePhysicalProfile as P } from "@automovie/interface";
|
|
2
|
+
import type { AutoMovieHumanoidSurfaceRays } from "./AutoMovieHumanoidSurfaceRays";
|
|
3
|
+
import type { resolveAutoMovieHumanoidSurfaces } from "./resolveAutoMovieHumanoidSurfaces";
|
|
4
|
+
/**
|
|
5
|
+
* The tip and the pad of every digit of both hands, as bone-local frames on
|
|
6
|
+
* each digit's distal phalanx.
|
|
7
|
+
*
|
|
8
|
+
* A digit's tip is where a ray from its last joint, along its distal
|
|
9
|
+
* phalanx (the line from the joint before it), leaves the phalanx's
|
|
10
|
+
* colliders, with the exited collider's outward normal: the index fingertip
|
|
11
|
+
* as `resolveAutoMovieHumanoidSurfaces` has always placed it, now for every
|
|
12
|
+
* digit. Its pad is the palmar face of the same phalanx: where a ray from the
|
|
13
|
+
* middle of the phalanx, between the last joint and the tip, leaves the
|
|
14
|
+
* colliders toward the palm's side. The palm faces -Y in the canonical rest
|
|
15
|
+
* (`HUMANOID_REST_FRAME`), so the palmar direction is -Y made perpendicular
|
|
16
|
+
* to the phalanx; the rig's thumb lies in the palm's plane with its nail up,
|
|
17
|
+
* so its pad faces the same side. A profile with no segment for a phalanx
|
|
18
|
+
* reads the hand's colliders instead, as the index tip did.
|
|
19
|
+
*
|
|
20
|
+
* Both sides are resolved; the caller replaces each left frame with its right
|
|
21
|
+
* twin's mirror image, as it does for every region.
|
|
22
|
+
*
|
|
23
|
+
* @param rays The rest-pose readers of the body (`AutoMovieHumanoidSurfaceRays.tools`).
|
|
24
|
+
* @param profile The body's physical profile, segments keyed by rig bones.
|
|
25
|
+
* @returns The tip and pad frames of every digit, keyed by region.
|
|
26
|
+
* @throws {Error} When a digit bone is missing or a ray misses its colliders.
|
|
27
|
+
*
|
|
28
|
+
* @evidence contracts/development/common.md#meaningful-documentation States where each tip and pad lies, the palmar direction's premise, the fallback to the hand's colliders and the frame of the result.
|
|
29
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact ray exits through the phalanx's convex colliders from anatomical stations (the last joint along the phalanx; the phalanx's middle toward the palm), each normal the exited collider's own, the method every rayed region uses.
|
|
30
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop over sides and digits writes two frames each, through the caller's own ray readers.
|
|
31
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every length is the body's own joints and colliders; the index tip keeps the station, direction and bone it had, so its frame is unchanged.
|
|
32
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Twenty rays, each linear in one segment's colliders, once per body.
|
|
33
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of the body; its caller resolves once per body.
|
|
34
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and retains nothing.
|
|
35
|
+
*/
|
|
36
|
+
export declare function AutoMovieHumanoidDigitSurfaces(rays: Pick<ReturnType<typeof AutoMovieHumanoidSurfaceRays.tools>, "at" | "local" | "surface">, profile: P): Partial<Record<AutoMovieHumanoidRegion, resolveAutoMovieHumanoidSurfaces.IFrame>>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoMovieHumanoidDigitSurfaces = AutoMovieHumanoidDigitSurfaces;
|
|
4
|
+
const Vector3_1 = require("../math/Vector3");
|
|
5
|
+
/**
|
|
6
|
+
* The tip and the pad of every digit of both hands, as bone-local frames on
|
|
7
|
+
* each digit's distal phalanx.
|
|
8
|
+
*
|
|
9
|
+
* A digit's tip is where a ray from its last joint, along its distal
|
|
10
|
+
* phalanx (the line from the joint before it), leaves the phalanx's
|
|
11
|
+
* colliders, with the exited collider's outward normal: the index fingertip
|
|
12
|
+
* as `resolveAutoMovieHumanoidSurfaces` has always placed it, now for every
|
|
13
|
+
* digit. Its pad is the palmar face of the same phalanx: where a ray from the
|
|
14
|
+
* middle of the phalanx, between the last joint and the tip, leaves the
|
|
15
|
+
* colliders toward the palm's side. The palm faces -Y in the canonical rest
|
|
16
|
+
* (`HUMANOID_REST_FRAME`), so the palmar direction is -Y made perpendicular
|
|
17
|
+
* to the phalanx; the rig's thumb lies in the palm's plane with its nail up,
|
|
18
|
+
* so its pad faces the same side. A profile with no segment for a phalanx
|
|
19
|
+
* reads the hand's colliders instead, as the index tip did.
|
|
20
|
+
*
|
|
21
|
+
* Both sides are resolved; the caller replaces each left frame with its right
|
|
22
|
+
* twin's mirror image, as it does for every region.
|
|
23
|
+
*
|
|
24
|
+
* @param rays The rest-pose readers of the body (`AutoMovieHumanoidSurfaceRays.tools`).
|
|
25
|
+
* @param profile The body's physical profile, segments keyed by rig bones.
|
|
26
|
+
* @returns The tip and pad frames of every digit, keyed by region.
|
|
27
|
+
* @throws {Error} When a digit bone is missing or a ray misses its colliders.
|
|
28
|
+
*
|
|
29
|
+
* @evidence contracts/development/common.md#meaningful-documentation States where each tip and pad lies, the palmar direction's premise, the fallback to the hand's colliders and the frame of the result.
|
|
30
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact ray exits through the phalanx's convex colliders from anatomical stations (the last joint along the phalanx; the phalanx's middle toward the palm), each normal the exited collider's own, the method every rayed region uses.
|
|
31
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop over sides and digits writes two frames each, through the caller's own ray readers.
|
|
32
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every length is the body's own joints and colliders; the index tip keeps the station, direction and bone it had, so its frame is unchanged.
|
|
33
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Twenty rays, each linear in one segment's colliders, once per body.
|
|
34
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of the body; its caller resolves once per body.
|
|
35
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and retains nothing.
|
|
36
|
+
*/
|
|
37
|
+
function AutoMovieHumanoidDigitSurfaces(rays, profile) {
|
|
38
|
+
const out = {};
|
|
39
|
+
const down = { x: 0, y: -1, z: 0 };
|
|
40
|
+
for (const Side of ["Left", "Right"]) {
|
|
41
|
+
const side = Side.toLowerCase();
|
|
42
|
+
for (const digit of DIGITS) {
|
|
43
|
+
const bone = (segment) => `${side}${digit}${segment}`;
|
|
44
|
+
const distal = bone("Distal");
|
|
45
|
+
const joint = rays.at(distal).worldPosition;
|
|
46
|
+
const along = Vector3_1.Vector3.subtract(joint, rays.at(bone(digit === "Thumb" ? "Proximal" : "Intermediate"))
|
|
47
|
+
.worldPosition);
|
|
48
|
+
// The phalanx's own colliders, or the hand's when the profile gives
|
|
49
|
+
// the phalanx none.
|
|
50
|
+
const phalanx = profile.segments.some((x) => x.bone === distal)
|
|
51
|
+
? distal
|
|
52
|
+
: `${side}Hand`;
|
|
53
|
+
const name = digit.toLowerCase();
|
|
54
|
+
const tip = rays.surface(phalanx, joint, along);
|
|
55
|
+
out[`${name}Tip${Side}`] = rays.local(distal, tip.point, tip.normal);
|
|
56
|
+
// The pad: from the phalanx's middle toward the palm's side.
|
|
57
|
+
const unit = Vector3_1.Vector3.normalize(along);
|
|
58
|
+
const palmar = Vector3_1.Vector3.normalize(Vector3_1.Vector3.subtract(down, Vector3_1.Vector3.scale(unit, Vector3_1.Vector3.dot(down, unit))));
|
|
59
|
+
const pad = rays.surface(phalanx, Vector3_1.Vector3.lerp(joint, tip.point, 0.5), palmar);
|
|
60
|
+
out[`${name}Pad${Side}`] = rays.local(distal, pad.point, pad.normal);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return out;
|
|
64
|
+
}
|
|
65
|
+
/** The digits, as their rig bone names spell them. */
|
|
66
|
+
const DIGITS = ["Thumb", "Index", "Middle", "Ring", "Little"];
|
|
67
|
+
//# sourceMappingURL=AutoMovieHumanoidDigitSurfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieHumanoidDigitSurfaces.js","sourceRoot":"","sources":["../../src/kinematics/AutoMovieHumanoidDigitSurfaces.ts"],"names":[],"mappings":";;;AAOA,6CAA0C;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wCACE,IAGC,EACD,OAAU;IAIV,MAAM,GAAG,GAEL,EAAE,CAAC;IACP,MAAM,IAAI,GAAsB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACtD,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,CAAU,EAAE,CAAC;QAC9C,MAAM,IAAI,GAAW,IAAI,CAAC,WAAW,EAAE,CAAC;QACxC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,IAAI,GAAG,CAAC,OAAe,EAAyB,EAAE,CACtD,GAAG,IAAI,GAAG,KAAK,GAAG,OAAO,EAA2B,CAAC;YACvD,MAAM,MAAM,GAA0B,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrD,MAAM,KAAK,GAAsB,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC;YAC/D,MAAM,KAAK,GAAsB,iBAAO,CAAC,QAAQ,CAC/C,KAAK,EACL,IAAI,CAAC,EA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QACJ,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,sDAAsD;AACtD,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AutoMovieHumanoidBone, AutoMovieHumanoidRegion, IAutoMovieVector3 } from "@automovie/interface";
|
|
2
|
+
import type { IAutoMovieResolvedBone } from "./IAutoMovieResolvedBone";
|
|
3
|
+
import type { resolveAutoMovieHumanoidSurfaces } from "./resolveAutoMovieHumanoidSurfaces";
|
|
4
|
+
/**
|
|
5
|
+
* The extent of every region of a body: the radius of the disc about the
|
|
6
|
+
* region's point that is still that region, read from the body's own rest
|
|
7
|
+
* pose. A named region of the skin reaches until the next one begins, so
|
|
8
|
+
* its disc reaches half way to the nearest other region that faces the
|
|
9
|
+
* same way (two discs overlap on the surface only where they face it from
|
|
10
|
+
* one side, so a palm and the back of the same hand, a chest and an upper
|
|
11
|
+
* back, are never each other's bound), and no farther than half its
|
|
12
|
+
* segment's least breadth, so the disc stays on the face of the segment it
|
|
13
|
+
* lies on (a forearm's disc does not wrap round to the arm's other side).
|
|
14
|
+
* No region is smaller than the 10 mm a pressed skin gives, the contact
|
|
15
|
+
* tolerance a hand on it is read against.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what an extent is, the two bounds with their anatomical basis and the floor.
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation A region is an area of the skin between its neighbours: a disc about its point, bounded by the half distance to the nearest neighbour facing the same way and by its segment's half breadth.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pass places every region in the world, a second reads each one's two bounds and the floor.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every length is the body's own: its regions' places and its colliders' bounds; no region is special-cased.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Quadratic in the regions, a few dozen per body, resolved once per body.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of the body; its caller resolves once per body.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and retains nothing.
|
|
24
|
+
*/
|
|
25
|
+
export declare function AutoMovieHumanoidSurfaceExtents(regions: Readonly<Record<AutoMovieHumanoidRegion, resolveAutoMovieHumanoidSurfaces.IFrame>>, at: (bone: AutoMovieHumanoidBone) => IAutoMovieResolvedBone, bounds: (bone: AutoMovieHumanoidBone) => {
|
|
26
|
+
min: IAutoMovieVector3;
|
|
27
|
+
max: IAutoMovieVector3;
|
|
28
|
+
}): Record<AutoMovieHumanoidRegion, number>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoMovieHumanoidSurfaceExtents = AutoMovieHumanoidSurfaceExtents;
|
|
4
|
+
const Quaternion_1 = require("../math/Quaternion");
|
|
5
|
+
const Vector3_1 = require("../math/Vector3");
|
|
6
|
+
/**
|
|
7
|
+
* The extent of every region of a body: the radius of the disc about the
|
|
8
|
+
* region's point that is still that region, read from the body's own rest
|
|
9
|
+
* pose. A named region of the skin reaches until the next one begins, so
|
|
10
|
+
* its disc reaches half way to the nearest other region that faces the
|
|
11
|
+
* same way (two discs overlap on the surface only where they face it from
|
|
12
|
+
* one side, so a palm and the back of the same hand, a chest and an upper
|
|
13
|
+
* back, are never each other's bound), and no farther than half its
|
|
14
|
+
* segment's least breadth, so the disc stays on the face of the segment it
|
|
15
|
+
* lies on (a forearm's disc does not wrap round to the arm's other side).
|
|
16
|
+
* No region is smaller than the 10 mm a pressed skin gives, the contact
|
|
17
|
+
* tolerance a hand on it is read against.
|
|
18
|
+
*
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what an extent is, the two bounds with their anatomical basis and the floor.
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation A region is an area of the skin between its neighbours: a disc about its point, bounded by the half distance to the nearest neighbour facing the same way and by its segment's half breadth.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pass places every region in the world, a second reads each one's two bounds and the floor.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every length is the body's own: its regions' places and its colliders' bounds; no region is special-cased.
|
|
23
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Quadratic in the regions, a few dozen per body, resolved once per body.
|
|
24
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of the body; its caller resolves once per body.
|
|
25
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and retains nothing.
|
|
26
|
+
*/
|
|
27
|
+
function AutoMovieHumanoidSurfaceExtents(regions, at, bounds) {
|
|
28
|
+
const placed = Object.entries(regions).map(([name, frame]) => {
|
|
29
|
+
const bone = at(frame.bone);
|
|
30
|
+
return {
|
|
31
|
+
name: name,
|
|
32
|
+
bone: frame.bone,
|
|
33
|
+
point: Vector3_1.Vector3.add(bone.worldPosition, Quaternion_1.Quaternion.rotateVector(bone.worldRotation, frame.point)),
|
|
34
|
+
normal: Quaternion_1.Quaternion.rotateVector(bone.worldRotation, frame.normal),
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
const out = {};
|
|
38
|
+
for (const region of placed) {
|
|
39
|
+
let nearest = Infinity;
|
|
40
|
+
for (const other of placed)
|
|
41
|
+
if (other.name !== region.name &&
|
|
42
|
+
Vector3_1.Vector3.dot(other.normal, region.normal) > 0)
|
|
43
|
+
nearest = Math.min(nearest, Vector3_1.Vector3.length(Vector3_1.Vector3.subtract(other.point, region.point)));
|
|
44
|
+
const box = bounds(region.bone);
|
|
45
|
+
const breadth = Math.min(box.max.x - box.min.x, box.max.y - box.min.y, box.max.z - box.min.z);
|
|
46
|
+
out[region.name] = Math.max(CONTACT, Math.min(nearest / 2, breadth / 2));
|
|
47
|
+
}
|
|
48
|
+
return out;
|
|
49
|
+
}
|
|
50
|
+
/** The least extent of a region, metres: the 10 mm a pressed skin gives, the tolerance a contact on it is read against. */
|
|
51
|
+
const CONTACT = 0.01;
|
|
52
|
+
//# sourceMappingURL=AutoMovieHumanoidSurfaceExtents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieHumanoidSurfaceExtents.js","sourceRoot":"","sources":["../../src/kinematics/AutoMovieHumanoidSurfaceExtents.ts"],"names":[],"mappings":";;;AAMA,mDAAgD;AAChD,6CAA0C;AAI1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,yCACE,OAEC,EACD,EAA2D,EAC3D,MAGC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CACxC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAoD,EAAE,EAAE;QACnE,MAAM,IAAI,GAA2B,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpD,OAAO;YACL,IAAI,EAAE,IAA+B;YACrC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,KAAK,EAAE,iBAAO,CAAC,GAAG,CAChB,IAAI,CAAC,aAAa,EAClB,uBAAU,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,CACzD;YACD,MAAM,EAAE,uBAAU,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC;SAClE,CAAC;IACJ,CAAC,CACF,CAAC;IACF,MAAM,GAAG,GAAG,EAA6C,CAAC;IAC1D,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;QAC5B,IAAI,OAAO,GAAW,QAAQ,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IACE,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;gBAC1B,iBAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;gBAE5C,OAAO,GAAG,IAAI,CAAC,GAAG,CAChB,OAAO,EACP,iBAAO,CAAC,MAAM,CAAC,iBAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAC5D,CAAC;QACN,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,OAAO,GAAW,IAAI,CAAC,GAAG,CAC9B,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,EACrB,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,EACrB,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CACtB,CAAC;QACF,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,2HAA2H;AAC3H,MAAM,OAAO,GAAW,IAAI,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { AutoMovieHumanoidBone, IAutoMovieSkeleton, IAutoMovieVector3, IAutoMoviePhysicalProfile as P } from "@automovie/interface";
|
|
2
|
+
import type { AutoMovieHumanoidSurfaceRegions } from "./AutoMovieHumanoidSurfaceRegions";
|
|
3
|
+
import type { IAutoMovieResolvedBone } from "./IAutoMovieResolvedBone";
|
|
4
|
+
import type { resolveAutoMovieHumanoidSurfaces } from "./resolveAutoMovieHumanoidSurfaces";
|
|
5
|
+
/**
|
|
6
|
+
* The rest-pose readers a humanoid's surfaces are resolved with
|
|
7
|
+
* (`resolveAutoMovieHumanoidSurfaces`): its bones, segments, collider
|
|
8
|
+
* bounds, bone-local frames, stations, and the exits of rays from them
|
|
9
|
+
* through the colliders with the colliders' outward normal there.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the readers and their reader.
|
|
12
|
+
* @evidence contracts/development/design.md#principled-representation Exact ray exits through convex colliders and the exited collider's outward normal (`physicalShapeNormal`).
|
|
13
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface One reader bundle and the exit record.
|
|
14
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts A missing bone, segment or hit throws rather than inventing a point.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace AutoMovieHumanoidSurfaceRays {
|
|
17
|
+
/**
|
|
18
|
+
* A point where a ray leaves a segment's colliders, with their outward
|
|
19
|
+
* normal there.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the point and the normal are and in which frame.
|
|
22
|
+
* @evidence contracts/development/design.md#principled-representation A surface sample: a world point and the collider's outward unit normal at it.
|
|
23
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The two members a region frame is built from.
|
|
24
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts None; the normal is the exited collider's own, not the ray's direction.
|
|
25
|
+
*/
|
|
26
|
+
interface ISurfacePoint {
|
|
27
|
+
/** The point, world metres in the rest pose. */
|
|
28
|
+
point: IAutoMovieVector3;
|
|
29
|
+
/** The outward unit normal there. */
|
|
30
|
+
normal: IAutoMovieVector3;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The rest pose readers every surface is resolved with: bones, segments,
|
|
34
|
+
* collider bounds, bone-local frames, stations and ray exits of one body.
|
|
35
|
+
*
|
|
36
|
+
* @evidence contracts/development/common.md#meaningful-documentation Names each reader the record returns and the body it reads.
|
|
37
|
+
* @evidence contracts/development/implementation.md#principled-implementation The rest pose resolved once; bounds are the union of the colliders' exact bounds; a ray's exit is the farthest exit over the segment's convex colliders, its normal that collider's.
|
|
38
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Six small closures over one rest pose map.
|
|
39
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing bone, segment or hit throws rather than inventing a point.
|
|
40
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One pose resolution; each read is linear in one segment's colliders.
|
|
41
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every reader shares the one resolved rest pose.
|
|
42
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The closures retain only the one body's rest pose, released with them.
|
|
43
|
+
*/
|
|
44
|
+
function tools(skeleton: IAutoMovieSkeleton, profile: P): {
|
|
45
|
+
at: (bone: AutoMovieHumanoidBone) => IAutoMovieResolvedBone;
|
|
46
|
+
bounds: (bone: AutoMovieHumanoidBone) => {
|
|
47
|
+
min: IAutoMovieVector3;
|
|
48
|
+
max: IAutoMovieVector3;
|
|
49
|
+
};
|
|
50
|
+
local: (bone: AutoMovieHumanoidBone, world: IAutoMovieVector3, direction: IAutoMovieVector3, forward?: IAutoMovieVector3) => resolveAutoMovieHumanoidSurfaces.IFrame;
|
|
51
|
+
station: (s: AutoMovieHumanoidSurfaceRegions.IStation) => IAutoMovieVector3;
|
|
52
|
+
exit: (bone: AutoMovieHumanoidBone, origin: IAutoMovieVector3, direction: IAutoMovieVector3) => IAutoMovieVector3;
|
|
53
|
+
surface: (bone: AutoMovieHumanoidBone, origin: IAutoMovieVector3, direction: IAutoMovieVector3) => ISurfacePoint;
|
|
54
|
+
};
|
|
55
|
+
}
|