Expand description
The examples of extruding, revolving and sweeping: programs written in
Rust against the operation types, which an editor offers to load
(set).
Each refers to what earlier steps built only by name, and so reads as
the recipe it is: extrude(box,end) is the end cap of the step box,
whatever internal id it happens to get.
Functions§
- box_
with_ drill_ hole - A 2 x 2 x 1 box with a blind hole drilled into its top: a rectangle
sketched on the Z plane and extruded up (
box), and a circle sketched on the box’s end capextrude(box,end)and extruded back into it, cutting it out of the box (hole) — the drilled box isextrude(hole). - bracket
- A 40 x 40 x 10 mm bracket with a 6 mm hole through its middle: a
rectangle sketched on the Z plane and extruded up (
block), and a circle sketched on the block’s end cap and extruded back through its full thickness, cutting it out of the block (hole). Unlikebox_with_drill_hole, the cut ends exactly on the bottom face, so the hole goes all the way through. The program the landing page’s agent demo transcript writes, step for step. - coil_
spring - A coil spring: a 2 x 2 rectangle (
section) on the origin’syplane, swept (coil) along a helix of radius 10 rising 20 in three turns round thezaxis, drawn in a 3-D sketch (route). - cross_
drilled_ shaft - A stepped shaft revolved around the world z-axis, cross-drilled through
its thinner end: a half section sketched on the X plane, closed by the
axis itself (
shaft), and a circle on the Y plane extruded through both sides of it and cut out of it (bore) — the drilled shaft isextrude(bore). - edge_
part - Three outlines sketched on the origin’s three planes, each extruded and joined to the one before, as drawn in the editor.
- handle_
with_ hole - A hand-drawn handle-shaped outline (an irregular blob, splined, with a smaller splined region inside it — as a free-hand sketch in the web editor draws, unconstrained) extruded, then cross-drilled with a circular hole near one end.
- horn
- A horn: a circle swept along a straight path, its size set by a rail — a spline flaring out beside the path, which the circle’s point on it follows.
- luggage_
tag - A rounded-top luggage tag: two vertical sides and a horizontal bottom, closed by a semicircular top tangent to both sides, with a hang-hole through the top (concentric with it) and a rectangular window in the body, inset 0.15 from each of the two sides and the bottom.
- motor_
flange - A motor flange 30 across and 2.5 thick, drawn the way the sketch tools draw it: its bore an offset of its rim, 10 in, so the wall follows the rim; and its bolt circle one hole patterned six times round its middle, so the copies follow the first hole.
- name_
plate - A name plate: a 40 x 14 x 3 plate sketched on the Z plane and
extruded up (
plate), and the word “GEOP”, its capitals 7 tall, its baseline from a point fixed at(7, 3.5), sketched on the plate’s topextrude(plate,end)and extruded 1 up from it, joined to the plate (letters): each letter a lump standing on the plate, the holes of theOand thePopen down to it. - parametric_
plate - A plate designed by its parameters:
widthanddepth— half the width, unless placed otherwise — extrudedthicknessthick, and a blind hole in its middle sized for the screw chosen from a table of sizes, and its colour. The hole’s sketch, on the plate’s top, projects the top, and puts the hole in the middle of it. The plate is meant to be placed with other values, and everything follows. - pipe
- A pipe bent through space — a cable conduit, say: a circle of radius
0.3 on the
xplane (section), swept along a 3-D sketch of lines and bends (route, seepipe_route) into the solidsweep(pipe). - pipe_
route - The route of
pipe, its bends of radiusbend: from the origin alongx, a bend turning toyat(4, 0, 0), a bend turning up tozat(4, 4, 0), and up to(4, 4, 4)— every bend tangent to the lines it joins. - revolved_
cone_ on_ box - A box with a round hole through it, and a triangle sketched on its side face, revolved around one of its own edges and joined to the box: a double cone whose axis lies in the side face, so that both apexes sit on it and half the cone stands out of the box.
- set
- The examples of this crate, as an editor offers them.
- square_
thread - A square thread, as drawn in the editor: a rectangle standing on a
revolved cylinder, swept five turns along a helix in a 3-D sketch and
joined to it, the wall it stands on lying in the cylinder’s. Kept as the
program it saved, as
edge_partis.