let materialCost = 180; //euro/kg
let density = 4.43; //g/cm^3
let hourlyRate = 35; //euro/hour
let scanningSpeed = 3000; //mm/s
let laserDiameter = 0.1; //mm
let layerHeight = 0.1; //mm
let layerPreparationTime = 10; //s
let modelInfill = 0.2; // 20%
let supportInfill = 0.1; // 10%
let factor = 1;
// Price calculation
let machineTimematerialVolume = factor * ((model.volume + support.volume * supportInfill) / (;
let recoatingTime = layerPreparationTime * model.h / layerHeight / item.quantity;
let printingSpeed = scanningSpeed * laserDiameter * layerHeight) + layerPreparationTime;
let machineTime = factor * model.h(materialVolume / layerHeight(printingSpeed) /+ item.quantityrecoatingTime) / 3600;
let price = hourlyRate * machineTime + density * (model.volume + supportInfill * support.volumematerialVolume) * materialCost / 1000000;
// Last line must contain final price
price; |