mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-08-11 00:30:12 -04:00
* feat: add embedded GCode viewer Adds PrettyGCode as a built-in GCode visualiser embedded directly in the Bambuddy layout, so users can preview and inspect GCode files without leaving the dashboard.
31 lines
582 B
JavaScript
31 lines
582 B
JavaScript
/**
|
|
* @author WestLangley / http://github.com/WestLangley
|
|
*
|
|
*/
|
|
|
|
THREE.Line2 = function ( geometry, material ) {
|
|
|
|
THREE.LineSegments2.call( this );
|
|
|
|
this.type = 'Line2';
|
|
|
|
this.geometry = geometry !== undefined ? geometry : new THREE.LineGeometry();
|
|
this.material = material !== undefined ? material : new THREE.LineMaterial( { color: Math.random() * 0xffffff } );
|
|
|
|
};
|
|
|
|
THREE.Line2.prototype = Object.assign( Object.create( THREE.LineSegments2.prototype ), {
|
|
|
|
constructor: THREE.Line2,
|
|
|
|
isLine2: true,
|
|
|
|
copy: function ( /* source */ ) {
|
|
|
|
// todo
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
} );
|