Create a curved plane surface which dynamically changes its size

How about this?
With black and white material.

20190219-1719-33478

var ls = 200; // length segments
var ws = 5; // width segments, tracks, streaks, stripes

var d = [ -0.6, -0.58, -0.01, 0.01, 0.58, 0.6 ];

for ( var j = 0; j < lss; j ++ ) {  // length
		
	for ( var i = 0; i < wss; i ++ ) { // width
		
		// calculate here the coordinates according to your wishes
		
		tangent = curve.getTangent( j / ls ); //  .. / length segments	
	
		normal.cross( tangent, binormal );

		binormal.cross( normal, tangent ); // new binormal
		
		normal.normalize();

		x = points[ j ].x + d[ i ] * normal.x;
		y = points[ j ].y;
		z = points[ j ].z + d[ i ] * normal.z;
		
		xyzSet();
		
		vIdx ++;
		
	}
	
}
3 Likes