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.
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.
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