How to do a circle with triangular mesh?

回答 (2 件)

KSSV
KSSV 2022 年 3 月 14 日

1 投票

9 件のコメント

loyyy
loyyy 2022 年 3 月 14 日
Thank you for your message. The file you gave shows an error result. Based on the image, it generates a quadrilateral mesh. I need to have a triangular mesh.
KSSV
KSSV 2022 年 3 月 14 日
Yes, it gives quadrilateral mesh. So you have the points (x,y) from this mesh. On these use delaunayTriangulation to get triangular mesh.
loyyy
loyyy 2022 年 3 月 14 日
I tried to run the codes but it shows error results. And, I don't know where to apply delaunay triangulation.
KSSV
KSSV 2022 年 3 月 14 日
What error you got when you try to run?
loyyy
loyyy 2022 年 3 月 14 日
I got an error result on each of the 3 scripts.
KSSV
KSSV 2022 年 3 月 14 日
Try:
MeshCircle([0 0],1,50,10) ;
loyyy
loyyy 2022 年 3 月 14 日
It resulted to this.
Is there another way of doing it, more easy? I think I will not able to explain the code properly to my mentor.
Walter Roberson
Walter Roberson 2022 年 3 月 14 日
No, there is no easier way. Every available method requires that you understand how to pass parameters to a function. The [0,0] and so on that KSSV showed are not just decorative!
Cat Li
Cat Li 2022 年 7 月 6 日
Thank you so much! I just saw this and your comment is extremely helpful.

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

Walter Roberson
Walter Roberson 2022 年 3 月 14 日

0 投票

Partial Differential Equations toolbox, generate mesh function.

カテゴリ

質問済み:

2022 年 3 月 14 日

コメント済み:

2022 年 7 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by