Deleting Internal Faces in a Mesh

14 次查看(过去 30 天)
I have a mesh which is composed of contiguous cubes, like this example (top right image):
I need to remove all the shared faces of the cubes, so the structure becomes one continuous solid.
Is there a way to select all the shared faces of adjacent cubes and remove them?
  3 个评论
Star Strider
Star Strider 2014-9-6
Star said: ‘It’s difficult to be specific without your code ...’
Paul Safier
Paul Safier 2020-4-19
John or Star: can you tell me how you would remove the internal faces from the geometry created with this:
pdem = createpde;
g = multicuboid(40,40,0.1*ones(10,1),'Zoffset',[0:0.1:0.9]);
pdem.Geometry = g;
generateMesh(pdem, 'Hmax',4,'Hmin',4);
Thanks!

请先登录,再进行评论。

回答(1 个)

Star Strider
Star Strider 2014-9-6
It’s difficult to be specific without your code, but if you’re using the surf function, see if:
surf( ... , 'FaceColor','interp', ... )
improves things.

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by