How to do a circle with triangular mesh?

Respuestas (2)

KSSV
KSSV el 14 de Mzo. de 2022

1 voto

9 comentarios

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

Iniciar sesión para comentar.

Preguntada:

el 14 de Mzo. de 2022

Comentada:

el 6 de Jul. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by