Skip to main content
F3D
Lưới Lập Phương Tâm Mặt (Face-Centered Cubic Lattice) 1

1 image

Giáo Dục

Lưới Lập Phương Tâm Mặt (Face-Centered Cubic Lattice)

By pvillano_114452

Downloads
5
Likes
1
Views
81

Files 3 712.3 MB

  • lattice_FCC_decimated_1778337386.stlSTL · 67.6 MB
  • lattice_FCC_1778352760.txtTXT · 1.4 KB
  • lattice FCC 13 million tris.stlNot available yet

Make a variant with AI

Build another version of this model.

Open Studio

Description

Designed with sdf2stl.saej.in

Untested. Print at your own risk.

Rendered with the following signed-distance function

// exponential smooth minumum of a and b, with smoothing factor k.
float smoothMin( float a, float b, float k)
{
float r = 1. + exp2(-abs(a-b)/k);
return min(a,b) - k * log2(r);
}

// A smooth face-centered-cubic lattice.
float sdSmoothLattice(vec3 position, float radius, float smoothness)
{
position -= round(position);
position = abs(position);
if(position.x + position.y > .5){
position.yx = vec2(.5) - position.xy;
}
if(position.x + position.z > .5){
position.zx = vec2(.5) - position.xz;
}
if(position.y + position.z > .5){
position.zy = vec2(.5) - position.yz;
}
vec3 v = vec3(1., -1.,0.)/sqrt(2.);
return smoothMin(smoothMin(smoothMin(smoothMin(smoothMin(
length(position - dot(position, v.xxz) * v.xxz) - radius,
length(position - dot(position, v.xyz) * v.xyz) - radius, smoothness),
length(position - dot(position, v.xzx) * v.xzx) - radius, smoothness),
length(position - dot(position, v.xzy) * v.xzy) - radius, smoothness),
length(position - dot(position, v.zxx) * v.zxx) - radius, smoothness),
length(position - dot(position, v.zxy) * v.zxy) - radius, smoothness
);
}

float map(in vec3 position)
{
vec3 q = abs(position);
float n = 8.;
float k = 100./n;
return max(
sdSmoothLattice(position / k + .5, .6/k, .15/k) * k,
max(max(q.x,q.y),q.z)-50. - .6
);
}

Read more Show less

Print spec

Formats
stltxt
Model files
3
Total size
712.3 MB
Largest file
644.6 MB

0 comments

See all