Skip to main content

Module editor

Module editor 

Source
Expand description

Editing a placed part: choosing its file, where it goes and whether it stays put, its mates — and dragging it, as far as its mates let it.

Where the part is, is the program’s state <id>.pose, which the editor solves the program’s mates for after every edit. The step only says where it wants the part pulled ([Form::pulls]): while it is dragged, what point of it is pulled where; once its placement is typed in, three points of it pulled to where that puts them. It is dragged by a gizmo at its origin — moved along or turned about its own axes or the world’s — or grabbed anywhere and dragged in the plane facing the eye. A part no mate may move goes where it is pulled.

A joint is made between frames, one picked on each part: a click on a face, an edge or a point puts one there (see geop_ops_model::mate_entity::MateEntity::frame), and the hover shows the frame it would pick, as three arrows. A coupling is made of two joints already made, offered by what they join.

A joint’s coordinates are the program’s state too: set in the dialog, they are held there while the step is edited (Pull::Value), and the parts move to them.

Structs§

PartSession
What the editor keeps while a placed part is edited.

Constants§

PART
The key of the placed part, as drawn to be dragged.

Type Aliases§

PartEditing
What a step placing a part keeps while it is edited.