Hi! Welcome to this d3.js
/ numeric.js
truss solver app. :3 Progress is on solver.html
.
You can also see a working verson here.
n
: node mode (create nodes by clicking and move nodes around by dragging)t
: trusss mode (create trusses by dragging between nodes)f
: force mode (create forces by dragging a force from a node)g
: fixed mode (set a node as fixed joint by clicking on it)r
: rolling mode (set a node as folling joint by clicking on it)s
: snap to grid (useful for making nodes in straight lines or forces that go straight down)SHIFT+click
: remove anything! (be careful, removing nodes removes all attached trusses
To print your work in JSON, you can use util.printString() in the console.