...
Code Block | ||
---|---|---|
| ||
let maxXYSurface = 650 * 750; // dimensions of the printer let materialCost = 120; // euro/kg let density = 1.12; // g/cm^3 let machineRate = 32; // euro/hour let timePerSurface = 0.00001; // h/mm^2 model’s surface let margin = 5; // total price is multiplied with margin // Price calculation let materialmaterialVolume = (model.volume + support.volume * 0.1); let material = materialVolume * materialCost * density * 0.000001; let time = model.area * timePerSurface * machineRate; let price = margin * (material + time); // Last line must contain final price price; |
...