Skip to main content

Module sweep

Module sweep 

Source
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§

PipeEvolution
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.
PipeLaws
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.
PipePlacement
How a profile is brought onto a spine by place_on_spine.
SpineFunction
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§

PipeContact
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.
PipeCorners
How a pipe turns a sharp corner of its spine.
PipeLaw
How a pipe’s section turns about its spine.
SpineLaw
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 radius along 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_shell with a frame law: the section turns about the spine the way law says.
make_pipe_shell_laws
make_pipe_shell_evolving with 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 by laws.scale and turned about it by laws.twist, each read at the share of the spine’s length run there, then carried by law.
make_pipe_shell_with
make_pipe_shell with 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) about axis, each point turning the right-handed way about it until its circle first meets the surface of limit, a face taken as its whole surface the way make_half_space takes 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 spine as placement asks: turned about its centroid until it stands square to the spine’s start tangent where correction, and moved so its centroid is the spine’s start point where contact. The result is a fresh profile, ready for make_pipe_shell and the sweeps like it; the history records it as the profile modified.