Spaces:
Sleeping

CyGuy8 Claude Fable 5 commited on
Commit
67c2359
·
1 Parent(s): 84c7b5c

Drop raster lines no head prints from the shared motion; {preset} markers

Browse files

Infill motion optimization:
- Lines that NO shape dispenses on are dropped from the motion instead
of swept valve-off: each grid line survives if ANY shape's infill
pattern prints it, and every shape receives the same combined
fraction list, so the shared motion stays identical across heads.
All shapes at 50% halve the path (measured 49.6%); mixed 50/75/50
drops only lines all three skip (72.7%); any shape at 100% keeps
every line. Solo shapes bound their own motion the same way
- Circle spiral: rings nobody prints drop out; perimeter walls always
stay (they always dispense). Rectangular spiral keeps its full
continuous walk - removing an interior loop would break the spiral
into disconnected rectangles
- Engine default is safe: shared-motion callers that do not pass
motion_infill_fractions get unrestricted motion, so heads can never
desynchronize by accident (the app always passes the list)

Aerotech host compatibility:
- The two pressure-setup header lines now carry the {preset} marker
({preset}serialPort3.write(eval(setpress(25)))), matching the lab's
newer TCode host format: presets execute at the controller's START
signal instead of with the initial valve toggles. Files without the
marker keep working; our parser ignores it
- _format_duration extracted from the viz time estimate (refactor)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

5 files changed +195 -36
Files changed (5)
README.md+1-1
app.py+22-7
tests/test_vector_gcode.py+87-19
vector_gcode.py+15-2
vector_toolpath.py+70-7