How do I create a 3D mesh?

19 次查看(过去 30 天)
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
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