0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 01:07:56 +01:00

Lowering max drawing complexity

This commit is contained in:
peteruithoven 2013-10-23 16:45:41 +02:00
parent 2b319c5dd6
commit 8bd62c93ec

View File

@ -25,7 +25,7 @@ gcodeEnd.push("G90"); // absolute positioning
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 = [];
function generate_gcode() {
@ -139,9 +139,11 @@ function generate_gcode() {
//console.log(" pointsToPrint: ",pointsToPrint);
//console.log(" MAX_POINTS_TO_PRINT: ",MAX_POINTS_TO_PRINT);
console.log("pointsToPrint: ",pointsToPrint);
if(pointsToPrint > MAX_POINTS_TO_PRINT) {
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 [];
}