Skip to main content

This page is under construction...\

Generate a "Coil" vector around a curve

Input requires a curve with a N, curveu and tangentu attribute (via normal and resample node for example).

vector dir = v@tangentu;
float coil = chf("coil");

float profile = chramp("profile", @curveu);

vector outdir = cross(dir, v@N);
matrix3 ratatoing = ident();

rotate(ratatoing, radians(@ptnum*coil), dir);
outdir *= ratatoing;

@width = profile * chf("curve_width");
v@outdir = outdir * profile;