Triangular 3D mesh

조회 수: 16 (최근 30일)
Aarron Sheppard
Aarron Sheppard 2018년 11월 7일
답변: Cris LaPierre 2018년 12월 26일
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

답변 (1개)

Cris LaPierre
Cris LaPierre 2018년 12월 26일
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.

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by