I’m new to three.js and trying to wrap my head around why my implementation of the gcode loader example doesn’t quite work right when I convert it over to use LineSegments2. I added the reference to LineSegments2 and changed the one line in the parser to use LineSegments2 instead of LineSegments and updated the material to use LineMaterial with a linewidth of 5 instead of LineBasicMaterial. This is what comes out.
You’ll notice all the green lines disappear, the red lines are still using the original material LineBasicMaterial. Any help with this would be greatly appreciated. My changes can be seen at the link below.