tube.mjs

Tools · A map or a diagram · MIT

What it does

Pipes, tubes and cables: splits a 3D route into chunks that can be depth-sorted, with gaps under collars and clamps, end caps, and rings for a braid or corrugation that follows the cross-section through every joint.

Get it

import { tubePieces, tubeSvg } from './kit/tube.mjs'; const pieces = tubePieces(points3, radius, P, { gaps, rings }); const svg = pieces.map((p) => tubeSvg(p)).join('');

Source on GitHub
Needs (the whole pack)

Node 20.10 or later for builds and checks, with nothing to npm install. Chrome for the checking scripts. React only for the React output. No API keys.

License

MIT

License notes are on the pack's page

From

Anatomy

Everything from Anatomy in the gallery

Back to the Asset Library