Examples

Each file under examples/ is a complete model that renders on its own. Every one exposes its geometry as a part() module.

01_elbow

A hollow 90 degree elbow

The smallest useful model: a hollow 90° elbow from three waypoints. Source.

02_polyline_run

A long tube with six bends in three dimensions

A long 3D run with a different fillet radius at each of six bends. Source.

03_turtle_route

A tube with three bends in different planes

A bender program. roll puts later bends in a different plane. Source.

04_helix

A helical coil of tube

A parametric coil with ut_curve, with exact tangents from dfdt. Source.

05_split_conduit

A C-section conduit with its gap facing up along two bends

A C-section whose gap faces up along two bends: a split profile plus frame = "fixed". Source.

06_manifold_4into1

Four inlet tubes curving into one outlet

Four inlets converging on one outlet at a single declared joint. Source.

07_ports_debug

A bent tube with red and blue arrows at each end

Port frames drawn as arrows: outward direction in red, roll reference in blue. Source.

08_coaxial_jacket

A small tube running inside a larger one around a bend

A tube inside a tube, kept apart by lumen groups. Source.

09_square_bore

A round tube with a square bore

An arbitrary section: a square bore in a round tube, sampled by angle. Source.

10_tee_wall_landing

A branch tube joining a larger trunk at a ball joint

A branch drawn from the trunk’s outer wall, joined mid-run. Source.

11_closed_loop

A closed ring of tube

A closed path. Its bore is a sealed cavity. Source.

12_section_view

A tube cut in half lengthwise, showing a square bore that rotates along it

ut_cutaway on a twisted square-bore tube, so the roll is visible on the cut face. Source.

To render them all to out/render/:

just render

Known issue (#33). 12_section_view applies twist across straight legs, where the tube necks: its outer radius is 8.56 mm at mid-leg against a nominal 9.


This site uses Just the Docs, a documentation theme for Jekyll.