From https://doc.babylonjs.com/api/classes/babylon.meshbuilder#extrudeshape
The parameter
path
is a required array of successive Vector3. This is the axis curve the shape is extruded along.
The parameter you are passing lines
is a completely different object
Object { state: “”, metadata: null, reservedDataStore: null, _doNotSerialize: false, _isDisposed: false, animations: , _ranges: {}, onReady: null, _isEnabled: true, _isParentEnabled: true, … }
Since extrudeShape
is not designed to do what you want you will need to design your own code.
You could try an extrudeShape
on your myPoints
and then have material that is part transparent to apply o your extrusion and adjust with uScale and vScale.
Something like this but with a bit more care https://playground.babylonjs.com/#AMTCWG#1