How do I create a 3D mesh?

조회 수: 20 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2016년 2월 3일
편집: MathWorks Support Team 2018년 9월 6일
I want to create a 3D mesh but "initmesh" only works for 2D data. How do I create a mesh from 3D data?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 9월 6일
Use the "generateMesh" function in the Partial Differential Equation Toolbox to generate a 3D mesh.
Refer to the following example that imports a 3D model, creates a mesh, and displays the mesh.
model = createpde;
importGeometry(model,'Torus.stl');
mesh = generateMesh(model);
[p,e,t] = meshToPet(mesh); %convert form of mesh
figure; pdemesh(mesh);
figure; pdemesh(p,e,t);
For more details refer to the following link:

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by