필터 지우기
필터 지우기

Get the indices of surface triangle from a tetrahedral mesh.

조회 수: 11 (최근 30일)
Tianshu Yu
Tianshu Yu 2019년 7월 7일
답변: Jyotsna Talluri 2019년 8월 1일
I used the function generateMesh() to generate a 3D tetrahedral mesh (quadratic model). I want to create a matrix TRI. Each row of TRI contains indices into the X,Y, and Z vertex vectors to define a single triangular face. I want to use this matrix TRI to define a triangulted surface of the origonal mesh, so that I can use other function such as tri contour to get a contour plot of the tetrahedral mesh. Is there anyway to do that? I have browsed a lot of tools but none of them provide a way to procduce the matrix TRI.
Below is my code of generation of a typical 3D tetrahedral mesh.
model = createpde;
importGeometry(model, 'virus_3.stl');
figure(1)
pdegplot(model,'FaceLabels','on')
mesh = generateMesh(model);
Below is my meshdata. If anyone also happens to know a easy way to make a contour out of this mesh, it will be very helpful as well.

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2019년 8월 1일

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by