fix cnc on line or flat compensation
This commit is contained in:
parent
c00c216822
commit
b108acacfc
3 changed files with 23 additions and 21 deletions
|
|
@ -112,6 +112,16 @@ var gs_base_polygon = exports;
|
|||
* Polygon Prototype Functions
|
||||
******************************************************************* */
|
||||
|
||||
PRO.toString = function() {
|
||||
let l;
|
||||
if (this.inner && this.inner.length) {
|
||||
l = '/' + this.inner.map(i => i.toString()).join(',');
|
||||
} else {
|
||||
l = '';
|
||||
}
|
||||
return `P[${this.points.length,this.area().toFixed(2)}${l}]`;
|
||||
};
|
||||
|
||||
// return which plane (x,y,z) this polygon is coplanar with
|
||||
PRO.alignment = function() {
|
||||
if (this._aligned) return this._aligned;
|
||||
|
|
|
|||
Loading…
Reference in a new issue