Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SLA (Accura ClearVue)

Code Block
languagejs
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 materialVolume = model.volume + support.volume * 0.1; 
let material = materialVolume * materialCost * density * 0.000001;
let time = (model.machine_volumearea * maxPrintTime)timePerSurface /* maxVolumemachineRate;
let price = margin * (material + time * machineRate);

// Last line must contain final price
price;

...