Triangular 3D mesh

16 visualizaciones (últimos 30 días)
Aarron Sheppard
Aarron Sheppard el 7 de Nov. de 2018
Respondida: Cris LaPierre el 26 de Dic. de 2018
Hi, I'm attempting to utilise some code I've been given which models a hypersonic flow. To do so, it imports geometry in the form of a point cloud and a connectivity matrix. The code doesn't give any indication as to how to create the mesh, so I'm attempting to create it by importing an STL file and then using generateMesh - the only issue is that the code I'm using requires triangular elements while generateMesh gives me elements with either 10 (using quadratic) or 4 (using linear) points - is there any way for me to convert these to triangular elements?
Thanks
A

Respuestas (1)

Cris LaPierre
Cris LaPierre el 26 de Dic. de 2018
If you already have the points and the connectivity matrix, you should be able to use triangulation and then triplot. Look at this example for more details.
For an STL file, import using stlread, then display using triplot. See this example.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by