how can i make surface in to solid (volume) ?

Hi.. I have a height data of the surface of a sample. i can plot the height data into a surface using "surf()" Matlab code. Now i want to create a solid body with that surface. plz help me with this..

답변 (2개)

Kelly Kearney
Kelly Kearney 2014년 1월 29일

1 개 추천

Like this: surf2solid?

댓글 수: 1

crisdeodates
crisdeodates 2020년 7월 9일
Hi, do you happen to have an example using this custom function? I have my X, Y and Z matrices with which I am generating my surface.

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2014년 1월 29일

0 개 추천

See the examples in trisurf() and tetramesh()
Both of them return patch handles.
For example if you used trisurf() you could extend the patch by adding on a rectangular base by adjusting the patch() properties.

댓글 수: 5

swamybabu
swamybabu 2014년 1월 29일
I have a 2d matrix. so i can plot a surface right!!. Now i want to make a rectangular block with top face consisting of above mentioned surface. Here surface is having a wavy structure. So the final rectangular shape should have this waviness on the top face. And i want to export it into some drawing software(autocad,solidworks,catia etc.)..
Any how thank u so much for the answer :)
Both of the examples I indicated can be used for your purposes.
You have your Z matrix; at what level do you want the bottom of the rectangular block to be? Do you want the bottom to be at 0? Do you want it to be at min(Z) [in which case one of the points would be directly at the bottom) ?
crisdeodates
crisdeodates 2020년 7월 9일
Hi, do you happen to have an example using this custom function? I have my X, Y and Z matrices with which I am generating my surface. Also I know at what height lowest point of my surface should be above from the base of the solid.
hi, I am also having facing the same problem, could you please help me out with
Can we assume that the base area is strictly rectangular? For example surf() can be used with x y coordinates such that it draws an oval (for example), and constructing a nice base for that is a bit messy

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2014년 1월 29일

댓글:

2022년 6월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by