mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 17:27:57 +01:00
Lowering max drawing complexity
This commit is contained in:
parent
2b319c5dd6
commit
8bd62c93ec
@ -25,7 +25,7 @@ gcodeEnd.push("G90"); // absolute positioning
|
|||||||
gcodeEnd.push("M117 Done "); // display message (20 characters to clear whole screen)*/
|
gcodeEnd.push("M117 Done "); // display message (20 characters to clear whole screen)*/
|
||||||
|
|
||||||
|
|
||||||
var MAX_POINTS_TO_PRINT = 400000; //80000; //40000;
|
var MAX_POINTS_TO_PRINT = 200000; //400000; //80000; //40000;
|
||||||
var gcode = [];
|
var gcode = [];
|
||||||
|
|
||||||
function generate_gcode() {
|
function generate_gcode() {
|
||||||
@ -139,9 +139,11 @@ function generate_gcode() {
|
|||||||
//console.log(" pointsToPrint: ",pointsToPrint);
|
//console.log(" pointsToPrint: ",pointsToPrint);
|
||||||
//console.log(" MAX_POINTS_TO_PRINT: ",MAX_POINTS_TO_PRINT);
|
//console.log(" MAX_POINTS_TO_PRINT: ",MAX_POINTS_TO_PRINT);
|
||||||
|
|
||||||
|
console.log("pointsToPrint: ",pointsToPrint);
|
||||||
|
|
||||||
if(pointsToPrint > MAX_POINTS_TO_PRINT) {
|
if(pointsToPrint > MAX_POINTS_TO_PRINT) {
|
||||||
alert("Sorry, your doodle to to complex and / or to high");
|
alert("Sorry, your doodle to to complex and / or to high");
|
||||||
console.log("WARNING: to many points to convert to gcode");
|
console.log("ERROR: to many points to convert to gcode");
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user