Skip to main content

Module datums

Module datums 

Source
Expand description

A part’s datums: reference geometry it is built with, not of — a point, an axis, a plane or a frame, by name — in the one target datums, which the steps that add datums revise (Datums). Every part also has ORIGIN, the world’s origin and axes, which no step adds.

A datum is an element of the target as a whole (AnyDatum), and as what it is: a point datum a Point, an axis a Line, a plane a Plane. A frame’s components are elements of their own, named after it: origin:z its z axis, origin:xy the plane normal to it (see component_name); a frame itself is a point, its origin. A part no step added a datum to has the origin all the same: the target reads as it where no step made it (HasElements::undefined).

Structs§

AnyDatum
A datum of the part, whatever it is.
Datums
The datums the steps of a part added, by name.
DatumsDrawer
Draws a part’s datums, the origin first, and lists them.

Constants§

ORIGIN
The name of the frame datum every part has: the world’s origin and axes, and the three planes between them.

Functions§

component_name
The name of the component component of the frame frame: origin:z for an axis, origin:xy for the plane normal to z.
datum
The datum name, or a component of one (see component_name), of the kind K: what a step’s arguments refer to it by.
datums
The part’s datums: revised by every step that adds one.
origin_axis
The axis axis of ORIGIN.
origin_plane
The plane of ORIGIN normal to normal.
read_datums
The datums as reader reads them: none but ORIGIN, before any step defines them.