Expand description
Pipes and lofts: the sweeps whose surfaces are already in the vocabulary.
A circular profile along a straight spine is a cylinder; around a full circle it is a torus; along an arc it is a torus segment, built from two half-tube patches and two meridian caps so that every edge is a circle with a closed-form chart. A ruled loft between two parallel sections is walls of planes and cones: segment to segment gives the planar quad, coaxial circle to circle gives the frustum the cone primitive already builds, and a skew ruled wall between two segments is the bilinear patch through its corners, exact. The sweeps that need surfaces with no closed form (a free-form spine, a smoothed skin through many sections) are fitted: the skin holds every section to a stated tolerance and refuses when it cannot reach it.
Structs§
- Pipe
Evolution - How a pipe’s section scales and twists along its spine, each in proportion to the length run along the spine: none at its start, all of it at its end.
- Pipe
Laws - How a pipe’s section scales and twists along its spine, each by its own law of the share of the spine’s length run, and how its profile is brought onto the spine first.
- Pipe
Placement - How a profile is brought onto a spine by
place_on_spine. - Spine
Function - A law of the share of a pipe’s spine run, given as a function from a
share in
[0, 1]to the law’s value there.
Enums§
- Pipe
Contact - How a pipe shell brings its profile onto the spine before sweeping it, a rigid motion of the profile defined by the profile’s plane and the spine’s start alone.
- Pipe
Corners - How a pipe turns a sharp corner of its spine.
- PipeLaw
- How a pipe’s section turns about its spine.
- Spine
Law - How a quantity runs along a pipe’s spine, against the share of the spine’s length run: from its value at the start (one for a scale, naught for a twist) at a share of naught.
Functions§
- make_
evolved - Sweep a profile along a spine, the way a moulding runs round a frame.
- make_
helical_ sweep - Sweep a planar profile along a helix about
axis: a screw motion, every point of the profile running its own helix. The thread and spring operation, with the profile in a plane through the axis; a profile in any other plane clear of the axis (square to it, a ramp or a stair’s tread) climbs the same way. - make_
loft - Loft two parallel closed sections into a solid, ruled.
- make_
loft_ skinned - Loft a solid through many closed planar sections, skinned smoothly.
- make_
loft_ skinned_ aligned - Loft through sections with the start of each row named by the caller.
- make_
loft_ skinned_ closed - Loft a ring through closed planar sections that loop back to the first.
- make_
pipe - Sweep a circular profile of
radiusalong a spine edge or wire. - make_
pipe_ sections - Sweep several planar sections down one spine, the section changing shape along the path: a multisection pipe.
- make_
pipe_ shell - Sweep a planar profile (a wire, or a face whose holes ride along) down an arbitrary spine, one skinned wall per profile loop.
- make_
pipe_ shell_ evolving - Sweep a planar profile along a spine under a frame law, the section scaling and twisting as it goes.
- make_
pipe_ shell_ law make_pipe_shellwith a frame law: the section turns about the spine the waylawsays.- make_
pipe_ shell_ laws make_pipe_shell_evolvingwith a law of its own for the scale and for the twist: at each point of the spine the section is the profile scaled about the spine bylaws.scaleand turned about it bylaws.twist, each read at the share of the spine’s length run there, then carried bylaw.- make_
pipe_ shell_ with make_pipe_shellwith a frame law and a way of turning corners.- make_
pipe_ skinned - Sweep a circular profile along a free-form spine, skinned.
- make_
revolution_ until - Revolve
profile(a planar face) aboutaxis, each point turning the right-handed way about it until its circle first meets the surface oflimit, a face taken as its whole surface the waymake_half_spacetakes it: the revolution “up to face”, stopping on the target at a different angle for each point. - place_
on_ spine - A planar profile (a face, or a closed wire) moved rigidly onto the start
of
spineasplacementasks: turned about its centroid until it stands square to the spine’s start tangent wherecorrection, and moved so its centroid is the spine’s start point wherecontact. The result is a fresh profile, ready formake_pipe_shelland the sweeps like it; the history records it as the profile modified.