How to access to the vertices and facets of each face detected using importGeometry (PDE toolbox) ?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sleh Eddine Brika
el 1 de Nov. de 2016
Comentada: Joep Eijsermans
el 11 de Mayo de 2020
Using importGeometry and pdegplot (PDE toolbox),
N = 3;
model = createpde(N);
importGeometry(model,'BracketWithHole.stl');
pdegplot(model,'FaceLabels','on')
the geometry is decomposed into different faces as shown in the picture. How to access to the vertices and the facets (triangles of the mesh) of each labeled face ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157575/image.png)
0 comentarios
Respuesta aceptada
Gaetano Formato
el 8 de Nov. de 2016
Hello,
I was able to associate nodes to faces thanks to this answer:
https://it.mathworks.com/matlabcentral/answers/310479-how-to-assign-nodes-to-faces-of-a-3d-tetrahedral-mesh-pdetool?s_tid=srchtitle
Thank you for your time.
Gaetano
2 comentarios
Joep Eijsermans
el 11 de Mayo de 2020
did you do it, and so yes can you give me an example. I dont understand it at all
Más respuestas (2)
Alan Weiss
el 2 de Nov. de 2016
First you have to create the mesh:
generatemesh(model);
If you have the latest MATLAB version (R2016b), you can view the mesh nodes and element labels using pdeplot3D. Sorry, I know of no way of obtaining the labels programmatically.
Alan Weiss
MATLAB mathematical toolbox documentation
2 comentarios
Alan Weiss
el 3 de Nov. de 2016
Sorry, I have no idea.
Alan Weiss
MATLAB mathematical toolbox documentation
Gaetano Formato
el 3 de Nov. de 2016
Hello,
I am facing the same problems. I would like to assign boundary nodes to faces in order to describe the solution over the faces. It seems impossible that there is no way to distinguish the boundary nodes from the face label. The geometry is imported as STL file. Thank you for your attention
Best Regards
Gaetano
1 comentario
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!