-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdf.minisdf
39 lines (39 loc) · 1.04 KB
/
sdf.minisdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
field myfield(offset: vec3){
smooth_union(1.0){
repeat(3.0, 10.0, 4.0){
sub(){
box(vec3(1.0, 2.0, 1.0))
}{
repeat(0.75, 0.75, 0.75){
sphere(0.4)
}
}
}
}{
translate(offset){
inter(){
sphere(1.75)
}{
sub(){
translate(vec3(0.0, 0.0, 0.0)){
smooth(0.5){
box(vec3(1.0, 1.0, 1.0))
}
}
}{
smooth(0.5){
union(){
box(vec3(2.0, 0.1, 0.1))
}{
union(){
box(vec3(0.1, 2.0, 0.1))
}{
box(vec3(0.1, 0.1, 2.0))
}
}
}
}
}
}
}
}