Slicer Discord
cosinus – 3D-Druckmodell von Thingiverse Thingiverse

cosinus

von Jujumo
0 Downloads
1 Likes
0 Makes
Zum Modell
Iso surface of

```
cos(x) + cos(y) + cos(z)
```

python code to generqte :

```
import numpy as np
from skimage import measure
from stl import mesh

bound = np.pi * 4
samples = 50
padding = 2
r = np.linspace(start=-bound, stop=bound, num=samples)
xx, yy, zz = np.meshgrid(r, r, r)
voxel_grid = np.cos(xx) + np.cos(yy) + np.cos(zz)
voxel_grid = np.pad(voxel_grid, padding, 'constant', constant_values=0)
# Use marching cubes to obtain the surface mesh
vertices, faces, normals, values = measure.marching_cubes(voxel_grid, level=0.0)
maillage = mesh.Mesh(np.zeros(faces.shape[0], dtype=mesh.Mesh.dtype))
for i, f in enumerate(faces):
for j in range(3):
maillage.vectors[i][j] = vertices[f[j], :]

maillage.save('cos 4x4x4.stl')
```
Quelle
Thingiverse
Was du zum Drucken brauchst: Anfänger Niedrige Konfidenz
Einteilig
Supports 1/3
Zusammenbau 0/3
Einstellungen 1/3
Druckbett 0/3
Nachbearbeitung 0/3
Drucker
FDM / FFF
Dateiformat
STL
Material
Software
Cura, PrusaSlicer o. Ä.
Noch keine Bewertungen
Noch keine Kommentare – sei der Erste!

Ähnliche Modelle

6 Vorschläge
Feed Blog Slicer Kostenrechner Bildersuche Einreichen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Zur Sammlung hinzufügen