How to mesh mutliple objects?

13 ビュー (過去 30 日間)
xadu
xadu 2021 年 2 月 9 日
コメント済み: xadu 2021 年 2 月 12 日
Hi, I would like to generate a 3D mesh consisting of tetrahedrons. I know that using mutlicuboid or multisphere functins, I can do this for a single object, or a collection of similar objects like so:
model = createpde;
gm = multicuboid(2,3,4);
model.Geometry = gm;
generateMesh(model,'GeometricOrder','linear');
pdeplot3D(model)
But what I would like to do is to define a cube, and a sphere inside it, and have the mesh respect the object boundaries. Is this possible? When I tried to append two objects into model.Geometry, it complained saying "Error using pde.EquationModel/set.Geometry (line 49) Assemblies of more than one geometric model are not currently supported."

採用された回答

Ravi Kumar
Ravi Kumar 2021 年 2 月 10 日
This example might work for you!
  1 件のコメント
xadu
xadu 2021 年 2 月 12 日
Thanks for the pointer to this resource; this is indeed what I was looking for!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by