フィルターのクリア

How to export .obj file from Matlab 3D Figure

42 ビュー (過去 30 日間)
Ryan Grech
Ryan Grech 2017 年 10 月 28 日
コメント済み: Giorgio Morello 2021 年 12 月 15 日
I have created a 3D graph of a gyroid using the following code:
a=1
a =
1
>> f = @(x,y,z) sin((2*pi*x)/a).*cos((2*pi*y)/a)+sin((2*pi*y)/a).*cos((2*pi*z)/a)+sin((2*pi*z)/a).*cos((2*pi*x)/a); >> interval = [-0.5 0.5 -0.5 0.5 -0.5 0.5]; >> fimplicit3(f,interval)
How can I extract the graph as an .obj file. I tried using these functions: http://www.aleph.se/Nada/Ray/matlabobj.html#2
But I cannot manage to get it to work. Any help would be greatly appreciated as I know it is not too complicated. Thanks
  1 件のコメント
Giorgio Morello
Giorgio Morello 2021 年 12 月 15 日
Hi, I have the same problem: I have a trisurf plot and have to export it as an .obj file. Can you explain me how you've overcome the issue?

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

回答 (1 件)

Dhrubajyoti Gupta
Dhrubajyoti Gupta 2020 年 12 月 12 日
編集済み: Dhrubajyoti Gupta 2020 年 12 月 12 日
Please check these out:
https://in.mathworks.com/matlabcentral/fileexchange/20922-stlwrite-write-ascii-or-binary-stl-files
I don't know whether it will serve the purpose or not, but still, give it a try!!!

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by