feat(std/transform): Transform3, GlobalTransform3 and 3D propagation #788
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!788
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/787-transform-3d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #89
Closes #787
std/transform 3D, step 3b of #89:
Transform3,GlobalTransform3andpropagate3, next to the 2D half from #779.What changes
Transform3<Scalar: Real = Float>: translation,Quaternionrotation, scale;identity,composed(child:),inverse(),interpolated(toward:by:),toMatrix4().composedis exact for a uniform parent scale.GlobalTransform3: holds theMatrix4;identity,transformedPoint,transformedDirection.propagate3: generic over the two stores, same shape aspropagate(own name because the two differ only in the store types).std/core,std/number,std/linear,std/ecs. No syntax, native or seed change.tests/conformance/transform-propagate-3d.trbwith.expectedand.exit.docs/standard-library/transform.mdand the summary lines, ECS.md notes; theskills/copy.Not verified locally (no torb binary here, CI only)
torb format --check,torb docschecks and the doccheckblocks have not run.transform-propagate-3d.expectedis computed by hand (exact quaternions, so exact values); the golden output is unconfirmed until CI.tests/conformance/transform-propagate-3d.allocationsholds the budget measured by CI (424 blocks, run 2914, tier B).skills/was edited by hand the way the generator writes it (no binary to runtorb docs skill docs skills); the--checkgate will say if it differs.transform3.trb(interpolated) is 121 columns, like the 2D file.std/transform3D,Transform3,GlobalTransform3and 3D propagation (step 3b of #89) #787std/ecswith oneStoreper group type, andstd/transform(ECS slice 1) #89CI red on
9691629:ci / tier A (linux-x64)(gates). Two red gates in the log of run 2899:format --check: 3 of 1767 files would change:std/transform/src/transform3.trb,std/transform/tests/transform3.test.trb,tests/conformance/transform-propagate-3d.trb.docs check:docs/standard-library/transform.md:3: A summary is at most 240 characters long. This one has 286.Heads-up: tier B was skipped behind the red tier A, so the missing
tests/conformance/transform-propagate-3d.allocationswill only surface on the next run; the issue asks for the budget from the first CI run. I read the diff as well and have no other blocker so far. My request stays pending and the next CI run brings me back.d7a182928ce4718c952fstd/transform3D,Transform3,GlobalTransform3and 3D propagation (step 3b of #89) #787CI red on
e4718c9:ci / tier B (linux-x64)(run 2914, stepsh tools/gates.sh b). Tier A is green now (format and docs gates fixed). The only failing conformance program of 363 istests/conformance/transform-propagate-3d.trb:has no allocation budget, allocated 424 blocks. The golden.expectedand.exitmatched in this run.Fix: add the budget with
sh tools/conformance.sh --update-budgets --filter tests/conformance/transform-propagate-3d.trband committests/conformance/transform-propagate-3d.allocations(the issue asks for the budget from the first CI run, 424 blocks measured here).I read the rest of the diff (Transform3, GlobalTransform3, propagate3, tests, docs, skills copy) and have no other blocker. My request stays pending and the next CI run brings me back.
Approved at
be87664(all checks from the code-review checklist):transform3.test.trb(identity, composition incl. rotated/scaled parent, uniform-scale agreement with the matrix product, inverse incl. zero scale, short-way interpolation,toMatrix4) andpropagate3.test.trb(reverse-order chain, order independence, non-uniform parent with rotated child, missing parent/global/transform, re-propagation, Float run), plus the conformance program with.expected/.exit/.allocations. CI green on exactly this head (tier A, tier B, JS, PHP, pdisc, gates); the hand-computed golden matched in CI.composed= T + R(S·t_child), exact for a uniform parent scale and documented as such;propagate3multiplies matrices (exact under shear), same shape as the 2Dpropagate;inverse()returnsNoneon a zero scale component.transform.md, ECS.md and theskills/copy updated; docs check and pdisc green.Non-blocking: none.