Expand description
The standard parts library: fasteners and purchased components every
workspace can place, as read-only files named std:… (see
geop_core_program::workspace::is_shared) — std:iso4032_hex_nut.geop.
Each family is one program, generated here in Rust and never saved:
its sizes are the rows of its table parameter size — M5,
M3x10 — its dimensions read from that row by the formulas of its
sketches (see [tables] for the data, [drawing] for sketches drawn
by formulas, [steps] for how a part is built). So a program placing
one picks its size like any parameter of a placed part.
Every part turns around, or runs along, the z axis, and carries named
datums to mate it by: axis, and a plane through the origin for the
face it sits on — seat under a screw’s head, top of a countersunk
screw, base of a nut, washer, pin or standoff, side of a bearing or
a gear, end of an extrusion, pulley or coupling, face of a motor,
mount of a servo; a part running along z sits on a plane beside it,
back of a rack, base of a rail, top of a carriage. A concentric
mate on axis and a coincident one on that plane place it. The axis
is a joint’s connector too: a gear or a pulley turns about it, a
carriage slides along its rail’s, a servo’s horn turns about it — and a
gear coupling ties two gears, or two pulleys on a belt (see [drive]).
Threads are not modelled: a screw’s shank and a nut’s bore are their
nominal diameter, and StandardPart::threaded names the faces a
thread goes on, for it to be recorded on them.
Where the files come from is WithStandardParts: a workspace’s own
files with the standard parts beside them, which is what the editor’s
workspace reads.
A part of a program of its own drawn by formulas, as the families are,
is a Drawing on the outline_plane.
Structs§
- Drawing
- A sketch drawn point by point, each point placed by two formulas — its
xandyfrom a fixed origin — so that every point follows the parameters on its own, and solving the sketch is solving a linear system with one answer. Curves only join points; arcs take a radius. - Standard
Part - A family of standard parts: the file it is placed from, and the program that builds its every size.
- With
Standard Parts - The program files
F, with the standard parts beside them: every file namedPREFIX…is a standard part’s — read-only, whateverFholds by that name — and every other isF’s.
Constants§
- PREFIX
- What the standard parts’ file names start with.
- SIZE
- The name of the table parameter every family’s size is chosen by.
- TEETH
- The table parameter a gear’s tooth count is chosen by.
Functions§
- outline_
plane - The plane outlines are drawn in, around the
zaxis: the origin’sxyplane. - part
- The standard part placed from
file. - parts
- Every standard part, each built if it was not yet.