I'm currently working on translating geometry canvas2d commands from a separate library to three.js webgl output. I have taken one example and created a canvas2d output in one fiddle, as well as the corresponding three.js fiddle. The three.js output is not quite right, so I need to make adjustments to either the command-generating library or the three.js parameters themselves. Can someone please assist me in fixing this example?
Here is the canvas2d fiddle: https://jsfiddle.net/onifs/a1L87mhb/2/
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
And here is the three.js fiddle: https://jsfiddle.net/onifs/s6xn0obu/13/
constructPathShape = new THREE.Shape();
Please click the "more" button several times to observe how the shape is constructed.
Thanks in advance!