Files
solidcraft/crates/doc/src/format/pending/align-frames.rs
T
Mateusz SychandMateuszSychXpl bfb32cd6e1 Align: move bodies by frames that follow sketch and model geometry (#6257) (#7123)
* claim: #6257

* Align: move bodies by frames that follow sketch and model geometry (#6257)

solid.align takes from_frame and to_frame: a joint origin on the model
(a face's or round end's centre, an edge's middle, a corner, found again
by name) or a sketch point or a sketch circle's, arc's or ellipse's
centre. Both are resolved on every evaluation, so the bodies follow
their target when it changes. An optional angle turns the bodies about
the target's direction after the move.

The Align dialog takes sketch points and curves as From and To, offers
the Joint Origin snap and an Angle row.

* Align frames: box the joint origin (clippy large_enum_variant)

* Align frames: every moved body on the frame's component, placed once

* Align frames: a sketch id's length in characters

* Align frames: the dialog test's sketch curve hit carries its point

* Align frames: the dialog test takes Vec2 from solidcore-record

---------

Co-authored-by: MateuszSychXpl <151755914+MateuszSychXpl@users.noreply.github.com>
2026-11-03 15:47:52 +00:00

8 lines
654 B
Rust

//! An Align feature (`FeatureKind::Align`) saves optional `from_frame` and `to_frame` (a joint
//! origin on the model, `{"type": "origin", "origin": {...}}`, or a sketch point or the centre of a
//! sketch circle, arc or ellipse, `{"type": "sketch_point", "sketch": id, "point": "<id>"}` /
//! `{"type": "sketch_curve", "sketch": id, "curve": "<id>"}`), found again from the geometry on
//! every evaluation so the bodies follow them, and an optional `angle` expression (a turn about the
//! target's direction). Older designs have none of them and evaluate as before. The last release
//! refuses a design with this change by its newer format number.