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 machineTime = factor * ((model.volume + support.volume * supportInfill) / (scanningSpeed * laserDiameter * layerHeight) + layerPreparationTime * model.h / layerHeight / item.quantity) / 3600;
let price = hourlyRate * machineTime + density * (model.volume + supportInfill * support.volume) * materialCost / 1000000; |