How to make a gradient periodicity gyroid?

5 ビュー (過去 30 日間)
Alex Haid
Alex Haid 2016 年 9 月 15 日
コメント済み: Maxon Okramcha 2024 年 3 月 21 日
Hi,
I use this code to make a gyroid. I export the surface as an stl using the stlwrite function somebody wrote.
[y,x,z] = ndgrid(linspace(0,20),linspace(0,20),linspace(0,20)); cx = cos(x); cy = cos(y); cz = cos(z); sx = sin(x); sy = sin(y); sz = sin(z); f = cx.*sy+cy.*sz+cz.*sx cla isosurface(x,y,z,f); view(3); camlight axis equal
Now I want the periodicity of the gyroid unit cells to either decrease or increase along one of the axes. I also want the transition from different periods to be a smooth gradient. I imagine storing coefficients that affect the periodicity in an array.
Thanks!
  2 件のコメント
Daniel Tomas Gardner Cuesta
Daniel Tomas Gardner Cuesta 2019 年 12 月 18 日
Hi,
I'm trying to generate a gyroid as you are but I'm struggling to export the surface as an stl file. Any chance you could show how you did it?
Thanks!
Maxon Okramcha
Maxon Okramcha 2024 年 3 月 21 日

サインインしてコメントする。

回答 (1 件)

Kabilan K
Kabilan K 2019 年 2 月 25 日
Hi did anyone got the solution for the quetion

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by