Geometry & Paths

Swept Cable

What this shows

Turn a path into a swept cable, rail, or road section.

This example needs a Canvas2D-capable browser.

Loading scene…

Loading scene…

Key API excerpt

import * as EASEL from "@xsyetopz/easel";

const plate = new EASEL.ExtrudeGeometry(shape, { depth: 0.5, steps: 3 });
const ribbon = new EASEL.TubeGeometry(new EASEL.CatmullRomCurve3(points), 28, 0.16, 8);