Skip to main content

Crate geop_ops_datums

Crate geop_ops_datums 

Source
Expand description

Reference geometry as an operation of a program (see [geop_ops::operation]): AddDatum builds a point, an axis, a plane or a coordinate system from entities picked in the part, in one of the ways CAD systems commonly offer (see Construction).

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.
AddDatumArgs
ConstructionSchema
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.
Geometry
Everything an entity can be used as. An entity is usually several at once: a straight edge is a line and a curve, a circular edge an arc, a curve and something round, a datum point a point and a frame, a datum frame the same.
Param
A value a construction takes besides its selection.
SelectionFit
What an editor offers for a selection: what each entity can be used as, and which constructions fit — by the same matching a step applies.

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}.
ParamKind
What kind of value a construction takes besides its selection.
Role
What a construction needs an input to be.

Constants§

CONSTRUCTIONS
Every Construction, described for an editor.

Functions§

inspect_selection
Which constructions fit selection in part (see SelectionFit).