Slicer Discord
cosinus – 3D printable model from Thingiverse Thingiverse

cosinus

by Jujumo
0 Downloads
1 Likes
0 Makes
Go to Model
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')
```
Source
Thingiverse
What you need to print this: Beginner Low confidence
Single piece
Supports 1/3
Assembly 0/3
Settings 1/3
Bed size 0/3
Post-process 0/3
Printer
FDM / FFF
File format
STL
Material
Software
Cura, PrusaSlicer, or similar
No ratings yet
No comments yet – be the first!

Similar Models

6 Suggestions
Feed Blog Slicer Cost Calculator Image Search Submit Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Add to Collection