...
This listing are all variables that are derived from each uploaded 3D model.
Variable | Description |
---|---|
| Volume of the 3D model in mm3 |
| Area of the 3D model in mm2 |
| Height of the 3D model in mm |
| Width of the 3D model in mm |
| Depth of the 3D model in mm |
| Number of separated shells in 3D model |
| Bounding box volume of the 3D model in mm3 |
| Convex hull volume of the model in mm3 |
| Convex hull volume of the model in mm3 |
| Concave hull volume of the model in mm3, calculated with a max edge length of 55mm |
| Volume of the solid support structures in mm3 |
| Area of the model connected to support structures in mm2 |
| Quantity of the same geometry in the basket. |
User Properties | See the variable listing under User Based Pricing Scripts |
Sample Material Pricing Scripts
...
Code Block | ||
---|---|---|
| ||
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.area * timePerSurface * machineRate;
let price = margin * (material + time * machineRate);
// Last line must contain final price
price; |
...