3D plotting of a spherical gyroid with thickness

11 次查看(过去 30 天)
the equation below is the equation of a spherical gyroid.
sin x * cos y + sin y * cos z + sin z * cos x = 0
i want to write a code and save the file so i can export it and do a 3D printing.to obtain the different surface areas as shown below. i also want to model so i can obtain various specific surface areas as shown below

回答(1 个)

darova
darova 2020-3-12
Use isosurface
clc,clear
cla
R = 10;
[x,y,z] = meshgrid(-R:0.3:R);
v = sin(x).*cos(y) + sin(y).*cos(z) + sin(z).*cos(x);
ix = x.^2+y.^2+z.^2 > R^2;
v(ix) = nan; % fill nan outside radius
p = isosurface(x,y,z,v,1); % change isovalue
patch(p,'facecolor','y','edgecolor','none')
camlight
material('metal')
axis vis3d
iso=-1 iso=0
  4 个评论
Arthur Leonard
Arthur Leonard 2021-4-19
Hello sir, how could I make the gyroid thick as it is on the pictures in the question?
Thanks for your help
darova
darova 2021-5-22
What about simply use isosurface twice?
p = isosurface(x,y,z,v,1); % change isovalue
p = isosurface(x,y,z,v,0.98); % change isovalue

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by