Given the above data, I would like to render it as shown below.
However, I encountered an issue with the thickness of the line, and it was more difficult to draw a line with a different thickness for each position.
I would like to ask for help on this.
Just out of curiousity, did you solve the processing of the bulge parameter, thus, you’re able to draw an arc with three.js with the given format of points?
And it would be nice to provide the code you use to draw straight lines.
As for line thickness, I have done something like it in Suica (which is a wrapper over Three.js) – a tube which path is defined via a function (or a spline) … and radius that is also defined by a function (or a spline).
Why does it have to be so? I just set heights for left side (start) and right side (end) of a plane geometry. There are always 4 points for a straight line.