Triangulation of a domain
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Khalid Ibne Masood
am 3 Apr. 2021
Beantwortet: darova
am 3 Apr. 2021
Hello,
I want to implement 2D fast marching method (FMM) in a rectangular domain with triangular meshes as there should be some curves inside the rectangular domain. FMM requires that all the triangles need to be acute angle triangle. Now please help me
(i) how to create triangular meshes in the rectangular domain with some curves inside
(ii) how to make sure all the triangles are non-obtuse triangles.
I appreciate all the helps.
Thank you
0 Kommentare
Akzeptierte Antwort
darova
am 3 Apr. 2021
Here is ax example of triangulation
t = (0:90:270)+45;
[x,y] = pol2cart(t*pi/180,1);
gd = [2;length(x);x(:);y(:)]; % geometry description
dl = decsg(gd); % decomposition
[p,e,t] = initmesh(dl); % initialize mesh (points,edges,triangles)
pdemesh(p,e,t)
help initmesh
What do you mean by curves inside?
I know only one way to generate non-obtuse triangle - just reduce size
To check angles of each triangles use dot product
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Triangulation Representation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!