Expression objects leaked into primitive geo metadata (make_cylinder/cone/
sphere) and were rejected by .scadpkg serialization. Write evaluated values
at the source (_operators_geometry) and project Var/Expr to float in
topology snapshots; add parametrized regression for var-driven primitive
positions.
Found during session 01a02469 (arc handle build) as two independent
serialization failures.
Replace the plain box bars with realistic forged connecting rods: two
chamfered circular bearing eyes joined by an I-beam web (wide top and
bottom flanges over a thin mid web), a bearing bore through each eye,
and lightening holes in the coupler web. Add a hex-head pivot bolt
part (hex prism head, washer shoulder, plain shank pinning the bar
stack) instanced once per joint and fixed to one adjacent bar so it
shares that bar's rigid group without adding kinematic DOFs. Split
geometry into per-part modules per the SDK coding standard (link_bar,
pivot_bolt, assembly) and assign steel materials so MJCF export gets
densities without a fallback. Verified end to end: 8 components and 8
constraints solve with zero residuals, the MJCF keeps the loop closure
at 5e-16 over 500 MuJoCo steps with all eight geoms present, and the
STL/STEP outputs show eye-and-web link silhouettes instead of boxes.
A movable joint whose two groups are already connected through the
spanning tree (a kinematic loop such as a four-bar linkage) previously
landed in redundant_movable_joints and was silently dropped, exporting
an open-chain model whose末端 swung freely. Loop closure is a nonlinear
pose constraint that neither a tree hinge (MJCF bodies form a strict
hierarchy) nor the linear fixed-tendon equalities can express, but
MuJoCo solves it natively as an equality/connect.
Emit one closure site per endpoint group at the connector frame and one
equality/connect joining them; record closures in the mapping, add
closure_count to the report, and empty redundant_movable_joints (every
non-tree movable edge is now either a coupling equality or a closure).
Add example 21 (planar Grashof four-bar with a closed-form assembled
pose, all drives None so the authored closure is the solve reference)
with build/export scripts, update the shared-connector test to the new
closure contract, and lock the loop topology with a dedicated test.
MuJoCo verification: the exported model loads, holds the closure gap at
1e-16 over 500 steps, and behaves as a 1-DOF mechanism.
- capture() accepts include_scene=False; the BLDC build skips the
tessellated Scene projection (STEP/MJCF/FCStd read meshes and feature
graphs from the definition closure), shrinking the package from 230MB
to 75MB and capture from ~460s to ~39s.
- main.py is now build + capture only with per-stage timing; the replay
verification and preview compound stages are dropped.
- export_mjcf.py / export_step.py / export_fcstd.py each translate the
captured .scadpkg independently; export_all.py runs them concurrently
(MJCF 84s, STEP 51s, FCStd 569s wall on BLDC).
- FreeCAD twisted-sweep emulation rejected multi-loop profile faces
('requires a face with one outer wire'), so the new ring-gear sweep
path failed FCStd export. Loft each wire of the face separately and
cut the inner plugs from the outer loft, matching the kernel's
sewn-shell semantics for annular and multi-hole profiles.
Replace the hand-rolled _build_bearing_definition wrapper (extract ring
parts, re-declare ground/revolute/public connectors) with
scad.std.bearing.build_ball_bearing for all five bearing sizes. The
actuator now consumes the standard bearing sub-assembly directly as a
definition while keeping the reducer-level dual fixed topology
(outer-to-seat, inner-to-carrier-pin, 22 bearing interfaces).
Replace pure-frame connector placement with QL-selected end faces,
auto-detect normal alignment for the flip parameter, ground the outer
sleeve, and add a prismatic constraint with drive_distance=0 and a
ScalarLimit of (0, 100) so the solver clamps the slide range.