---
pretty_name: 3D Topology and Boundary Conditions
configs:
- config_name: default
data_files:
- split: train
path: data/shard-*.tar
size_categories:
- 100K`2214490db8a8b23e` · 112 × 104 × 88
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/2214490db8a8b23e.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2214490db8a8b23e.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/66418215ff51c9fb.glb)
`66418215ff51c9fb` · 48 × 40 × 48
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/66418215ff51c9fb.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66418215ff51c9fb.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/220fa6a08f2e6961.glb)
`220fa6a08f2e6961` · 112 × 48 × 40
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/220fa6a08f2e6961.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/220fa6a08f2e6961.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440ddf1a5a886b8a.glb)
`440ddf1a5a886b8a` · 136 × 40 × 40
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440ddf1a5a886b8a.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/440ddf1a5a886b8a.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aaac4b5b0054a5bc.glb)
`aaac4b5b0054a5bc` · 192 × 32 × 48
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aaac4b5b0054a5bc.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aaac4b5b0054a5bc.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/663834c3dbfd506f.glb)
`663834c3dbfd506f` · 72 × 56 × 64
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/663834c3dbfd506f.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663834c3dbfd506f.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/ef03e5f4dd627b40.glb)
`ef03e5f4dd627b40` · 48 × 64 × 40
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/ef03e5f4dd627b40.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/ef03e5f4dd627b40.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440f445383ca9740.glb)
`440f445383ca9740` · 112 × 72 × 72
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440f445383ca9740.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/440f445383ca9740.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab16f4c97628b8d.glb)
`aab16f4c97628b8d` · 72 × 64 × 56
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab16f4c97628b8d.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aab16f4c97628b8d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab973efdbd25a3a.glb)
`aab973efdbd25a3a` · 216 × 56 × 48
[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab973efdbd25a3a.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aab973efdbd25a3a.png) |
### More topologies with boundary conditions
Select a thumbnail to open the full-resolution rendering.
| | |
|:---:|:---:|
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/0002c8015959683d.png)
`0002c8015959683d` · 144 × 64 × 56
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/0002c8015959683d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/000d8eb0f5df436d.png)
`000d8eb0f5df436d` · 40 × 40 × 48
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/000d8eb0f5df436d.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/22141144dcbfe9d3.png)
`22141144dcbfe9d3` · 192 × 32 × 32
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/22141144dcbfe9d3.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2211ec70bfeef1c4.png)
`2211ec70bfeef1c4` · 120 × 96 × 72
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2211ec70bfeef1c4.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66377ca7c6c8fe8e.png)
`66377ca7c6c8fe8e` · 152 × 48 × 48
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66377ca7c6c8fe8e.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663efa305312e5dd.png)
`663efa305312e5dd` · 272 × 56 × 48
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663efa305312e5dd.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872475e9659ed8d.png)
`8872475e9659ed8d` · 120 × 80 × 40
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872475e9659ed8d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872ce6876f7507b.png)
`8872ce6876f7507b` · 64 × 88 × 48
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872ce6876f7507b.png) |
| [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc9d0665e529aa57.png)
`cc9d0665e529aa57` · 136 × 48 × 56
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc9d0665e529aa57.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc91845823ae8ac1.png)
`cc91845823ae8ac1` · 56 × 224 × 48
[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc91845823ae8ac1.png) |
## Files
The data are stored in `data/shard-*.tar` archives of approximately 1 GB each. Every example has a 16-character hexadecimal identifier and two adjacent archive members:
- `.topo.npz`: topology density array.
- `.logs.npz`: boundary conditions and optimization logs.
Each pair is contained in a single shard. The NPZ files are compressed NumPy archives containing numeric arrays and can be opened with `allow_pickle=False`. Topology dimensions and the numbers of boundary-condition nodes vary between examples. The archives preserve continuous density values and stored force vectors.
## Arrays
| Archive / key | Description |
|---|---|
| Topology: `topo` | `float16` element-density array of shape `(nx, ny, nz)`, in XYZ axis order. |
| Logs: `dims` | Element counts `[nx, ny, nz]`, matching the topology shape. |
| Logs: `loads`, `load_v` | Corresponding `(N, 3)` load-node coordinates and force vectors; columns are X, Y, Z. |
| Logs: `bcs`, `bc_c` | Corresponding `(M, 3)` support-node coordinates and displacement-constraint flags; a nonzero flag fixes the corresponding component. |
| Logs: `E_mat` | Stored material-modulus metadata. |
| Logs: `vf` | Prescribed optimization volume fraction, distinct from the mean stored density. |
| Logs: `converged`, `iterations` | Stored optimization status and iteration count. |
| Logs: `objective`, `objective_change`, `design_change`, `residual` | Stored optimization-history arrays. |
Boundary-condition coordinates are zero-based node coordinates: each component may range from zero through the corresponding value in `dims`, inclusive. Topology array indices instead range from zero through `dims - 1`. Repeated load coordinates represent additive force contributions; repeated support coordinates combine their constraint flags. No physical unit system is specified by these files.
## Read one example
The following example reads the first pair from one downloaded shard without extracting the archive. It requires NumPy and the Python standard library.
```python
import io
import tarfile
import numpy as np
with tarfile.open("data/shard-00000.tar") as shard:
member = next(m for m in shard if m.name.endswith(".topo.npz"))
sample_id = member.name.split(".")[0]
with np.load(io.BytesIO(shard.extractfile(member).read()), allow_pickle=False) as data:
topo = data["topo"]
with np.load(io.BytesIO(shard.extractfile(f"{sample_id}.logs.npz").read()), allow_pickle=False) as data:
logs = {key: data[key] for key in data.files}
```