Create 3D Geometry for PDE Toolbox
Show older comments
I am having trouble creating the geometry of the attached image for use in the PDE toolbox. I have tried several things: i) reworking the examples from the FileExchange code stlwrite by Sven Holcombe, ii) the use of the isosurface function, iii) the use of the alphashape function. All are failing. Any tips would be appreciated!

5 Comments
darova
on 26 Mar 2020
What is the format of data? I suppose it should be meshed?
Paul Safier
on 26 Mar 2020
darova
on 26 Mar 2020
so you have to create only surface or inside elements?
here is simple part of it:
s = 1;
w = 1;
h = 2;
d = 1;
x = [0 s+w s+w s s 0];
y = [h+d d+h 0 0 h h];
patch(x,y,'r')
axis equal
Paul Safier
on 26 Mar 2020
Paul Safier
on 26 Mar 2020
Answers (0)
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!