File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -483,16 +483,16 @@ export class WebGLPreview {
483483
484484 const lineVertices : number [ ] = [ ] ;
485485
486- // lines need to be offset.
486+ // lines need to be offset.
487487 // The gcode specifies the nozzle height which is the top of the extrusion.
488488 // The line doesn't have a constant height in world coords so it should be rendered at horizontal midplane of the extrusion layer.
489489 // Otherwise the line will be clipped by the clipping plane.
490490 const offset = - this . lineHeight / 2 ;
491491
492492 paths . forEach ( ( path ) => {
493493 for ( let i = 0 ; i < path . vertices . length - 3 ; i += 3 ) {
494- lineVertices . push ( path . vertices [ i ] , path . vertices [ i + 1 ] - 0.1 , path . vertices [ i + 2 ] + offset ) ;
495- lineVertices . push ( path . vertices [ i + 3 ] , path . vertices [ i + 4 ] - 0.1 , path . vertices [ i + 5 ] + offset ) ;
494+ lineVertices . push ( path . vertices [ i ] , path . vertices [ i + 1 ] - 0.1 , path . vertices [ i + 2 ] + offset ) ;
495+ lineVertices . push ( path . vertices [ i + 3 ] , path . vertices [ i + 4 ] - 0.1 , path . vertices [ i + 5 ] + offset ) ;
496496 }
497497 } ) ;
498498
You can’t perform that action at this time.
0 commit comments