Skip to content

Geometry pricing

Upload an STL or DXF file and price from volume, surface, profile length and complexity.

A configurator can accept a geometry upload and expose its measured metrics to formulas. You set which file types the configurator accepts, whether an upload is required and which metric keys the formulas may use.

Analysis runs in the browser in a web worker. The derived metrics and a sha256 hash of the file are sent with the run, and the file itself is stored in the uploads bucket. All metrics are numbers computed deterministically.

STL metrics

MetricMeaning
volume_mm3Solid volume from a signed tetrahedron sum, taken as absolute
surface_mm2Total surface area
bbox_x, bbox_y, bbox_zBounding box dimensions

A non watertight mesh still reports a volume, with a warning flag that surfaces as a warn on the run. Treat that price as provisional until the mesh is checked.

DXF metrics

MetricMeaning
profile_length_mmSum of line, arc, circle and polyline lengths
pierce_countNumber of closed loops, one pierce each
complexityA 0 to 100 blend of entity count, arc ratio and loop count

Pricing from geometry

Formulas read these metrics like any other scope. A machined part might price from volume and complexity, a profiled plate from profile length and pierce count.

ts
price = round(
 geometry.volume_mm3 / 1000 * material_rate_cm3
 + setup_fee
 + geometry.complexity * complexity_rate,
 2
)

STEP files are available behind a flag on request, not on by default. When enabled they are tessellated and then measured through the STL path.