2 Commits

Author SHA1 Message Date
superGeometry 41ff788485 Assemblies: a thread's own faces give a joint its line (from the list of what is left to improve - "Ok do them").
A joint took its line from a round face (its axis) or a flat one (its normal, through its middle). A thread's flanks are neither: tapped, they gave no line, and a bolt and its nut had to be joined by flat faces that happen to lie on the thread's line. Any face turned round a line - a thread's flank, a cone - gives that line now, found from the face's drawn points and the way it faces at each: along the line the normals all lean the same (the direction their leaning varies least in), and seen along it they all point at it. A flat face, a ball and a freeform face have no such line and give none, as before.

Such a line is good to a few hundredths of a millimetre (it is found from the drawn points), so two picks count as on one line a little more loosely when one of them is such, and the joint's line is the other pick's when that one is known exactly.

tests/joints.test.ts: a helicoid round a slanted line (its direction and place found), a cylinder's wall, a flat face, a ball. In the app, on the M10 bolt and nut: every thread flank of both bodies gives the Z axis to within 0.05 mm; the bolt's thread and the nut's thread tapped - a Screw of pitch 1.5 along Z.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 18:32:44 +02:00
superGeometry 7bac6e1855 Assemblies, a first version: joints between the bodies, dragged by them, followed, pulled apart (asked for: "Can we work now on assemblies? ... Can we develop a system that its in the same theme with the rest of the app and its intuitive and easy to assemble? people build the models with the parts already in place so maybe thats a good start", then, to joints and dragging, linked motion and the exploded view, a pose that goes back to where it was modelled, and no physics: "ok do what you recommend and well start from there").
More > BIM > Assemblies (it was greyed out, "soon"), marked as still being tried out.

- Nothing is put in place: the bodies are where they were modelled. A joint only says how two of them move. Add joint, a face tapped on each of two bodies, and the kind is read off the faces as they stand: on one line (two round faces on one axis, two flat faces one above the other) a Hinge - a Screw of the thread's pitch when one of the two bodies is threaded; two flat faces side by side, a Slide along the first's normal; anything else, Fixed. The Type can be changed. Two faces picked on two bodies have Joint among their tools, which opens Assemblies with the joint made.
- A body dragged moves the way its joint lets it: round the joint's line (by where the pointer is across it, turn after turn; seen from the side, by how far the grabbed point went round), along it, or both at once on a screw. Its Angle or Distance can be typed. Limits keep it between two values. Flip turns the line round. A body held fast to another moves with that one's joint.
- Follows: a joint goes with another by a Ratio (a gear: minus the ratio of the teeth); dragging either moves both.
- Explode: a slider that pushes each body off its neighbour along their joint's line (a fixed joint: from middle to middle).
- Stands still: which body doesn't move (else the first of each group of joined bodies).
- Moving is a pose, not a change to the model: what is drawn of each body is put through its move, nothing is made again. Home, or leaving Assemblies, has every body where it was modelled. Joints are kept in the project (and its .super file), undone and redone like any change; their line follows the faces they were picked by when the model changes.

Not in it: weight, forces, bodies stopping against each other; a ring of joints (its last joint is left out); the pose in exports and drawings; parts from another project put in place by their faces.

A flat face's middle, for a joint's line, is its outline's (the middle of the box round it): a nut's top is a ring whose hole the thread runs out of to one side, its centre of area a quarter of a millimetre off the nut's line - the first try made a Slide of the bolt and nut for that.

tests/joints.test.ts, 26 checks: each kind of joint, limits, which body stands, a chain of two hinges, a ring, a joint following another, exploded, what two picks make. In the app, on the tutorial's M10 bolt and nut: the head's top and the nut's top tapped - a Screw of pitch 1.5; the nut dragged by its side - turned 18.3 degrees and up 0.076 mm; 720 typed - up 3 mm, the same way round; limits 0 to 360 - held at 360; Home; Explode at 60% - the nut off the end of the bolt; Joint from two picked faces; left - the nut home, the joint kept; undone - the joint gone. Not tried: the phone's layout, a touch drag, Follows through the app (its sums are tested).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 16:00:03 +02:00