Mesh doesn't work for cone shape?

1 回表示 (過去 30 日間)
Tianshu Yu
Tianshu Yu 2019 年 6 月 29 日
コメント済み: Dr Sohaib Khan 2020 年 6 月 2 日
I have a perfect cone shape, which is stored in a the tip_6.stl. I try to use the function generateMesh(). I found that no matter how do I choose the parameter Hmax and Hmin, It always shows me something like the following: Meshing failed with a Hmax of 0.100000 and a Hmin of 0.050000, adjusting Hmax and Hmin may resolve the problem. I found that as soon as I replace the tip point with a shpere, mesh just works fine. Seems like the function generateMesh cannot generate any sharp feature. Is there any way to get around this problem?

採用された回答

David Goodmanson
David Goodmanson 2019 年 6 月 30 日
Hello TY,
I don't know if you need a fancier triangular mesh, but here is a way to a 'square' one.
r = 0:.05:1;
th = linspace(0,2*pi,length(r));
[R theta] = meshgrid(r,th)
x = R.*cos(theta);
y = R.*sin(theta);
z = R*5; % 5 for example
mesh(x,y,z)
  1 件のコメント
Dr Sohaib Khan
Dr Sohaib Khan 2020 年 6 月 2 日
hello david.... can u please help me with generation of mesh or surface around circles.... shall remain thankful.

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

その他の回答 (0 件)

カテゴリ

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