Expand description
Reference geometry as an operation of a program: AddDatum builds a
point, an axis, a plane or a coordinate system from elements picked in
the part ([Selected]), in one of the ways CAD systems commonly offer
(see Construction), and adds it to the part’s datums (see
geop_ops_model::datums). What it is built from is picked as any
element of the part (geop_ops_model::selection::Selected).
Modules§
- examples
- The examples of datums an editor offers: parts sketched on datum planes — a boss on a plane above a box, a wing lofted between sections on planes apart.
Structs§
- AddDatum
- Adds a datum to the part, named by the operation’s id: a point, an
axis, a plane or a coordinate system built from the selected entities by
one of the
Constructions. Like a sketch’s plane, it is built when the step runs and stays where it was, whatever later steps do to what it was built from. - AddDatum
Args - Construction
Schema - One way to build a datum (see
Construction): what it builds, what it needs selected — one entity per input, in any order — and the values it takes besides. - Param
- A value a construction takes besides its selection.
Enums§
- Construction
- How a datum is built from its selection: one variant per way,
with the values it takes besides. Serialized with its method:
{"method": "offset", "distance": 1.0}. - Param
Kind - What kind of value a construction takes besides its selection.
Constants§
- CONSTRUCTIONS
- Every
Construction, described for an editor.
Functions§
- fitting_
constructions - The method of every construction that fits
selectionasreaderreads the part — by the same matching a step applies. None, if the part lacks an element of it. - register
- Adds what this crate offers an editor to
r: the step adding a datum.