diff --git a/surfaces/blender/brokkr_kitbash/brokkr_actions.json b/surfaces/blender/brokkr_kitbash/brokkr_actions.json index 1c52b58..e83a183 100644 --- a/surfaces/blender/brokkr_kitbash/brokkr_actions.json +++ b/surfaces/blender/brokkr_kitbash/brokkr_actions.json @@ -109,7 +109,7 @@ }, { "name": "brokkr_kitbash.attach", - "doc": "Seat a socket of a kit part on a socket of a part of any kit whose socket types agree and parent it there: origins together, normals opposed. Refuses sockets of different types or sizes that do not match, an occupied socket, a child that has a parent, and a loop. The connection's DOF is its parent socket's type's (revolute, prismatic or rigid); it starts with no joint record: brokkr_kitbash.joint states one. Reports the child with its connection.", + "doc": "Seat a socket of a kit part on a socket of a part of any kit whose socket types agree and parent it there: origins together, normals opposed. Refuses sockets of different types or sizes that do not match, an occupied socket, a child that has a parent, a loop, and a new pin or slide between the two ends of a loop that follows (a second driver: both are named; hold it or clear the loop first). The connection's DOF is its parent socket's type's (revolute, prismatic or rigid); it starts with no joint record: brokkr_kitbash.joint states one. Reports the child with its connection.", "changesScene": true, "editModeSafe": false, "result": "brokkr_mesh_polish_result", @@ -160,7 +160,7 @@ }, { "name": "brokkr_kitbash.detach", - "doc": "Clear a kit part's connection and the closure it states: it keeps its place in the world and loses its parent; parts attached to it stay attached to it.", + "doc": "Clear a kit part's connection and the closure it states: it keeps its place in the world and loses its parent; parts attached to it stay attached to it. A loop follower's partner stops following with it. Refused, with nothing changed, when it would leave a loop that follows with a second driver: a part between one end of the loop and the part both ends hang from, whose going leaves a joint with travel between the ends (both drivers are named).", "changesScene": true, "editModeSafe": false, "result": "brokkr_mesh_polish_result", @@ -310,7 +310,7 @@ }, { "name": "brokkr_kitbash.joint", - "doc": "State the joint record of an attached kit part's connection. The connection's DOF is its parent socket's type's: revolute (its value is the roll, degrees) or prismatic (the slide, metres). record is a JSON object of any of limits ([lo, hi] or null), mechanism (a label of 1 to 32 a-z, 0-9 and _, or null) and compliance ({\"hertz\": over 0 to 30, \"damping_ratio\": 0 to 2} or null: a slide in the load path that settles under load, a record for a runtime, solved by nothing here); a key left out keeps what is stated and null clears it. Refuses a rigid connection naming its socket type, limits that do not hold the value the joint has, revolute limits spanning over 360 degrees or with an end past 360, prismatic limits with an end past 10 m, and compliance on a revolute joint or without limits. Moves nothing but a roll to its turn inside the limits: a follower keeps its derived value (limits that do not hold it are refused), and a driver's followers are derived again where it stands. Limits cannot be cleared from a driver a ratio follows. Reports the part and closures as roll does.", + "doc": "State the joint record of an attached kit part's connection. The connection's DOF is its parent socket's type's: revolute (its value is the roll, degrees) or prismatic (the slide, metres). record is a JSON object of any of limits ([lo, hi] or null), mechanism (a label of 1 to 32 a-z, 0-9 and _, or null) and compliance ({\"hertz\": over 0 to 30, \"damping_ratio\": 0 to 2} or null: a slide in the load path that settles under load, a record for a runtime, solved by nothing here); a key left out keeps what is stated and null clears it. Refuses a rigid connection naming its socket type, limits that do not hold the value the joint has, revolute limits spanning over 360 degrees or with an end past 360, prismatic limits with an end past 10 m, and compliance on a revolute joint or without limits. Moves nothing but a roll to its turn inside the limits: a follower keeps its derived value (limits that do not hold it are refused), and a driver's followers are derived again where it stands. Limits cannot be cleared from a driver a ratio follows, nor widened or cleared on a pin that limits of one value hold between the two ends of a loop that follows (it would be a second driver: both are named). Reports the part and closures as roll does.", "changesScene": true, "editModeSafe": false, "result": "brokkr_mesh_polish_result", @@ -384,7 +384,7 @@ }, { "name": "brokkr_kitbash.follow", - "doc": "State that an attached kit part's joint follows another's: its roll or slide is then derived from the driver's whenever the driver is posed, and roll, aim, reach and slide on it are refused. record is JSON. {\"driver\": name, \"kind\": \"ratio\", \"k\": number, \"offset\": number}: the value is k x the driver's value + offset (a kneecap at k 0.5, a pinion at minus ring over pinion, a crosshead's slide in metres per degree of a roll); the driver states limits, so its value is one number. {\"driver\": name, \"kind\": \"loop\"}: object_name is a part that states a closure that holds; its joint and its parent's are the two unknowns solved so the closure keeps holding (a rocker and coupler closing on a crank; a ram's barrel and rod closing on the part it pushes; a torque link's two arms), and both follow the driver. Exactly one end of the loop, the parent's parent or the part closed on, moves with the driver: it is the driver, follows it, or hangs from one that does. The driver is the one input the two ends depend on: every revolute or prismatic joint between an end and the part both ends hang from is the driver, follows it, or is held by limits of one value (a torque link's lug on its rod: limits [90, 90]). The loop is planar: its pins are parallel. null clears the statement, and a loop partner's with it. The follower moves at once and the report's followers lists every follower of the driver as {part, value}. Refuses, with nothing changed: a rigid connection; a driver that is the follower, below it, or itself a follower; a follower that already follows or that drives another; a ratio whose driver states no limits; a value outside the follower's own limits; a loop with no closure that holds, with both ends or neither moving with the driver, whose ends depend on more than one driver (another driver's follower, or a joint with travel that follows nothing: both are named), that is not planar, or at or past a dead centre (its two joints in line, a ram's rod end on its barrel's pin, or a step that would take the pair to its other assembly). Nothing stores a pin or a linkage: a loop is solved from the kits' socket frames each time, and no Blender driver or constraint is made.", + "doc": "State that an attached kit part's joint follows another's: its roll or slide is then derived from the driver's whenever the driver is posed, and roll, aim, reach and slide on it are refused. record is JSON. {\"driver\": name, \"kind\": \"ratio\", \"k\": number, \"offset\": number}: the value is k x the driver's value + offset (a kneecap at k 0.5, a pinion at minus ring over pinion, a crosshead's slide in metres per degree of a roll); the driver states limits, so its value is one number. {\"driver\": name, \"kind\": \"loop\"}: object_name is a part that states a closure that holds; its joint and its parent's are the two unknowns solved so the closure keeps holding (a rocker and coupler closing on a crank; a ram's barrel and rod closing on the part it pushes; a torque link's two arms), and both follow the driver. Exactly one end of the loop, the parent's parent or the part closed on, moves with the driver: it is the driver, follows it, or hangs from one that does. The driver is the one input the two ends depend on: every revolute or prismatic joint between an end and the part both ends hang from is the driver, follows it, or is held by limits of one value (a torque link's lug on its rod: limits [90, 90]). The loop is planar: its pins are parallel. null clears the statement, and a loop partner's with it; it is refused for a follower between the two ends of another loop, which it would leave with a second driver. The one-driver rule is read again before every write of a connection and before detach, so no later attach, detach, clear, limits or pose breaks it. The follower moves at once and the report's followers lists every follower of the driver as {part, value}. Refuses, with nothing changed: a rigid connection; a driver that is the follower, below it, or itself a follower; a follower that already follows or that drives another; a ratio whose driver states no limits; a value outside the follower's own limits; a loop with no closure that holds, with both ends or neither moving with the driver, whose ends depend on more than one driver (another driver's follower, or a joint with travel that follows nothing: both are named), that is not planar, or at or past a dead centre (its two joints in line, a ram's rod end on its barrel's pin, or a step that would take the pair to its other assembly). Nothing stores a pin or a linkage: a loop is solved from the kits' socket frames each time, and no Blender driver or constraint is made.", "changesScene": true, "editModeSafe": false, "result": "brokkr_mesh_polish_result", diff --git a/surfaces/blender/docs/kitbash.md b/surfaces/blender/docs/kitbash.md index 54a965a..34263e8 100644 --- a/surfaces/blender/docs/kitbash.md +++ b/surfaces/blender/docs/kitbash.md @@ -221,11 +221,19 @@ parallel to the pin it closes on and each slide runs across it. Exactly one of i and the part closed on) moves with the driver: it is the driver, follows it, or hangs from one that does. And the driver is the only input the two ends depend on: every revolute or prismatic joint between an end and the part the two ends share (or the root, when they share none) is the driver, follows it, or is held by limits of one value. A -joint there that follows another driver, or that follows nothing and has travel, would open the loop when it is -posed, so `follow` refuses the loop and names the driver and each other input; it does not solve a loop for two -drivers. A torque link is the case: the kit has no rigid lug, and a strut's two pins face one way, so the lower arm -closes on a strut pinned to the rod's end, and that pin is held by limits of one value (`[90, 90]`) before the -arms follow the rod's slide. Nothing +joint there that follows another driver, or that follows nothing and has travel, is a second driver: a pose of it +would open the loop, and nothing here solves a loop for two drivers. The rule is read over every loop in the scene +before each write, as the scene would stand after it (`one_driver`, asked by the one writer of connections and by +`detach`), so it holds after the loop is stated as it does when `follow` states it. Each of these is refused with +nothing changed, naming the loop's driver and each other one: `attach` of an end's root on a pin or a slide, +`detach` of a part between an end and the part both ends hang from, `follow` with null on a follower between the +ends, `joint` widening or clearing limits that held a pin there, and any pose once such a joint was written by +hand. To change a mechanism between a loop's ends, give the new joint its one driver or its one value first, or +clear the loop and state it again. A loop whose driver is detached is derived by nothing and is not read; the +attach that gives the driver a connection again reads it. A torque link is the case for limits of one value: a +real torque link exists to stop the rod rolling in its barrel, so its lug has no travel, and a strut pinned to +the rod's end and held by limits `[90, 90]` is that lug (a strut's two pins face one way, so the lower arm cannot +close on the rod's own pin). The lug is held before the arms follow the rod's slide. Nothing stores a pin position or a linkage record: `core.close_loop` solves the pair from the kits' socket frames at the parts' stored params each time, by Newton's method on the closing pin's error in the loop's plane with the analytic Jacobian. That is the position analysis of the kinematics texts (Nikravesh, *Computer-Aided Analysis of Mechanical