Plot projections on XY , XZ , YZ planes of 3D volume ( triangulated set of samples of 3D body's surface ) using contour function
조회 수: 8 (최근 30일)
이전 댓글 표시
Hello,
I have 3 vectors x_ , y_ , z_ of surface samples of some 3D body that I succeed to approximately plot using matlab by following script sequence:
figure
tri = delaunay3(x_,y_,z_);
axis tight;
hold on;
grid on;
trisurf(tri,x_,y_,z_);hold on;
shading interp;
shadow(1);
...
shadow(6);
using shadowplot from :
I am trying to add necessary custom changes to shadowplot function in order to draw projections using contour as in : http://fileslap.com/94s/plot_
inside shadowplot function points for projections got using next commands:
a.get handle:
kidsp = findobj(hAx,'Type','patch');
b.get patch (graphics object):
for ii=1:length(kidsp)
hPat = kidsp(ii);
c.get patch data:
patdata = get(hPat,{'XData','YData','ZData'});
size of each patdata{1-3} is 4 on 1255 for the instance.
Inside the shadowplot function the shadows are drawn ok using next command:
hp(ii) = patch(patdata{1},patdata{2},patdata{3},[.1 .1 .1]);
Does anybody know what points and how to get them from patdata{..} structure should be passed to contour(...) function to draw the projections as in
? Thanks in advance.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!