How to do a circle with triangular mesh?

Antworten (2)

KSSV
KSSV am 14 Mär. 2022

1 Stimme

9 Kommentare

loyyy
loyyy am 14 Mär. 2022
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 am 14 Mär. 2022
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 am 14 Mär. 2022
I tried to run the codes but it shows error results. And, I don't know where to apply delaunay triangulation.
KSSV
KSSV am 14 Mär. 2022
What error you got when you try to run?
loyyy
loyyy am 14 Mär. 2022
I got an error result on each of the 3 scripts.
Try:
MeshCircle([0 0],1,50,10) ;
loyyy
loyyy am 14 Mär. 2022
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 am 14 Mär. 2022
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 am 6 Jul. 2022
Thank you so much! I just saw this and your comment is extremely helpful.

Melden Sie sich an, um zu kommentieren.

Kategorien

Gefragt:

am 14 Mär. 2022

Kommentiert:

am 6 Jul. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by