Import a mesh file
import_modelImport an STL, OBJ or 3MF file as a new project — for geometry you did not author. STL and OBJ carry no unit, so pass unit if you know it; otherwise it is guessed and the guess is reported back so you can correct it. The response reports whether the mesh is watertight and what is wrong with it if not — a mesh that is not watertight cannot take part in a boolean, so check this before building on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An https address we fetch server-side. For a file already on the web. | |
| name | No | Project name. | |
| unit | No | Unit the file is authored in. Guessed if omitted. | |
| base64 | No | The file bytes, base64-encoded. Max 6 MB decoded. Only usable if your own CODE fills this in — if the file is on disk, call create_upload and send `ticketId` instead. | |
| format | No | Required with `base64`; the ticket carries it otherwise. | |
| repair | No | Weld hairline cracks, close holes and fix face directions on the way in (default false). Off by default because it moves geometry; the response always reports whether it was needed, so import once, read `watertight`, and re-import with this set only if it says no. | |
| ticketId | No | A create_upload ticket whose file has been PUT. Carries its own format. |