Skip to main content

Module examples

Module examples 

Source
Expand description

The examples of assemblies (set): programs placing the parts other files build, written in Rust against the operation types — and the parts they place, the files of each example made of several (workspaces).

Each refers to what earlier steps built only by name, and so reads as the recipe it is: extrude(pin,start) is the bottom of the pin.

Functions§

arm_assembly
The assembly of arm: three links (link.geop, link) — the first fixed, each next one hinged on the far end of the one before by a revolute joint (see [hinged]), the elbow turning at most 150° either way, the wrist 120°. Its state sets the joints — 30° and -45° — and puts the links where those joints have them.
bar
A bar of aluminium: [link_sketch] length long, extruded 0.2 up, to be linked by its holes.
bolted_plate
metric_plate (plate.geop) bolted together from standard parts: an ISO 4762 M4 x 12 cap screw down its hole, and an ISO 4032 M4 nut under it — each mated by its datums axis and seat or base.
cam
A cam: a disc of radius 2 whose center is 0.5 off the origin along x — so turned about the origin’s z axis it is eccentric — 1 thick, half of it either side of the origin’s xy plane.
cam_follower_assembly
The assembly of cam_follower: the cam (cam.geop, cam) turning on a revolute joint about the origin’s z axis, and the follower — a pin (pin.geop) — on a slider along the origin’s x axis, the rim of its foot touching the cam’s side (a tangent mate). A motion, spin, turns the cam once round in 4 s, the follower riding on it; and a move of an exploded view, apart, lifts the follower off the cam.
chain_assembly
The assembly of chain: three links (link.geop, link), the first fixed, each next one’s near hole on the axis of the one before’s far hole, lying on it — and nothing else: each turns about its pin.
four_bar_assembly
The assembly of four_bar: a four-bar linkage of bars — the ground (4 long, fixed), the crank (1.5) and the rocker (3) each pinned to one end of it and lying on it, and the coupler (4) pinned to their far ends, lying on the crank. The crank is the shortest bar and 1.5 + 4 ≤ 4 + 3, so it turns all the way round while the rocker rocks.
link
The link of the chain: a bar 3 long.
link_holes
The faces of the holes of a bar placed as instance, near one first.
link_rim
The circular edge of the hole hole (0 near, 1 far) of the link placed as instance, on its top (end) or bottom (start) face — and the frame it gives: at its center, its z along its axis, what a click on the rim of a hole picks.
metric_plate
A plate 40 x 40 x 5 with a 4.5 hole through it at (20, 20) — in millimetres, as the standard parts are: clearance for an M4 screw.
metric_plate_hole
The name of the face of metric_plate’s hole.
pin
A pin: a circle of radius 0.4 around the origin, extruded 2 up — made to fit the hole of box_with_drill_hole.
pin_in_plate_assembly
The assembly of pin_in_plate: the plate (plate.geop, the box of box_with_drill_hole) placed fixed, and the pin (pin.geop, pin) mated into its hole — its side on the hole’s axis, its bottom on the hole’s. Its state puts both where those mates hold them.
plates_assembly
Two of parametric_plate, placed with other values: one as it is, one 5 wide with an M6 hole, in blue.
pose
A pose of an example: at position, turned by degrees (see Pose::from_euler) — as a file holds it (Pose::saved): where an example puts a part to start from is a free choice, and one its file can say saves and reads back as it is.
set
The examples of assemblies, as the editor offers them: the parts they place that are examples of their own (pin, link), and the examples made of several files (workspaces).
workspaces
Every example made of several files, by name, each with what makes its files: listing them builds nothing.