3592031d5e
The parts of one STEP assembly import share their face names, and each part's body stays where the file has it, placed in its component by an offset. A joint origin on a named face (a hole's centre, a face's centre, an x reference by face, the end a round origin takes) looked the name up on every body of the design and compared the pick, in the joint's component coordinates, with each body as it lies. Another part's face of that name could lie nearer, and the joint resolved on that part's face: a pin jointed into one plate's hole landed where the other plate's hole is relative to its plate. named_face now looks only at the bodies of the joint's component, each in its own coordinates, a face the name finds exactly before a piece of it or a face it was merged into, then the nearest. The design-wide lookup stays for a face whose body has gone to another component. named_round, x_axis, pin_end and end_faces take the component, as face_name_at and round_end_at already do. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>