> For the complete documentation index, see [llms.txt](https://doc.ancoraspring.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/astriad/printing.md).

# Export for 3D Printing

Export a single closed STL from the sphere diameter, then prepare it in your slicer.

Export the frame as **one closed, connected solid**, sized by the sphere diameter in millimeters.

## Online export

In the [online tool](https://ancoraspring.com/astriad/), set **Sphere diameter** in millimeters, select the axes and choose **Download STL**.

## Download the 20 mm model

{% file src="/files/BQpmTwEYVtmDdiJomUmB" %}
20 mm sphere diameter, XYZ axes, 90 × 90 × 90 mm overall dimensions.
{% endfile %}

[Preview the matching scene in MuJoCo Live](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/astriad/simulation.md#open-in-mujoco-live).

## Export a model

```bash
asTriad export --size 20 --output triad.stl
```

This creates `triad.stl` with a **20 mm sphere**, three **80 mm arrows**, **7.2 mm shafts**, and cone heads whose height and base diameter are both **16 mm**. The overall XYZ bounding box is **90 × 90 × 90 mm**.

<figure><img src="https://3069436181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiTOs5tBJUyhQCv2lbX6A%2Fuploads%2Fgit-blob-811dabaed8af68dc77cccc369a5cfa7ea01edb63%2FasTriad-print.png?alt=media" alt="Single solid coordinate-frame STL with a center sphere, moderate shafts and compact cone heads"><figcaption><p>Exported 20 mm STL viewed in MuJoCo.</p></figcaption></figure>

## Prepare it in your slicer

{% stepper %}
{% step %}

### Import using millimeters

Import the STL using **millimeters**. For `--size 20`, the full XYZ model measures 90 mm in each direction.
{% endstep %}

{% step %}

### Choose orientation and supports

The exporter preserves positive X/Y/Z directions and translates the model so its lowest point is at Z=0. Choose a suitable print orientation, supports for horizontal overhangs, and bed adhesion for your printer and material.
{% endstep %}

{% step %}

### Check the slice before printing

Inspect the sphere-to-shaft connections and cone heads in the layer preview. Changing `--size` scales every feature, including the thinnest shafts; select a size suitable for your process.
{% endstep %}
{% endstepper %}

## Select axes or change size

```bash
# Scale every geometric length by 1.5× compared with a 20 mm sphere
asTriad export --size 30 --output triad-30mm.stl

# Export X and Z arrows with the origin sphere
asTriad export --size 20 --axes xz --output triad-xz.stl
```

When `--output` is omitted, the command writes `asTriad.stl` in the current directory. The origin sphere remains present when arrows are hidden. For an origin-only model, use `--axes none`.

## Export from Python

```python
from asTriad import export_stl

output = export_stl("triad.stl", size=20, axes="xyz")
print(output)
```

`export_stl` returns a `pathlib.Path`. Python uses an empty axis string, `axes=""`, for an origin-only model.

## Files and further reading

* [Release files and the 20 mm sample STL](https://github.com/asMagicApp/asTraid/releases/tag/v0.10.0)
* [Python API reference](https://github.com/asMagicApp/asTraid/blob/v0.10.0/docs/api.md)
* [Physical units and proportions](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/astriad.md#dimensions)
* [Use the frame in MuJoCo](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/astriad/simulation.md)
