how can i draw a 3d rectangle with infinitesimal areas (on faces) and volumes inside it and take their coordinates?
4 ビュー (過去 30 日間)
古いコメントを表示
Hi all
i am relatively new to matlab and i was trying to draw the rectanlge with lines inside it such each face is dividied into infinitesimal area(which i need to compute) and rectangle can be divided into N volumes inside it (i need to compute it too ) i also need to have their coordinates (volume+areas) and also coordinates of their midpoints
I will appreciate any help if i can get
anyhow i was found somethin over internet may be similar to what i need but it is square and i dont know how i can get the coordinates and midpoints?
clc
clear all
close all
for x=0:1:2;
for y=0:1:2;
plot3([x,x],[0,2],[y,y]);
hold on
end
end
for x=0:1:2;
for y=0:1:2;
plot3([0,2],[x,x],[y,y]);
hold on
end
end
for x=0:1:2;
for y=0:1:2;
plot3([y,y],[x,x],[0,2]);
hold on
end
end
here is that program i need something similar but not a square and with the above mentioned coordinates?
Thanks
5 件のコメント
Walter Roberson
2012 年 12 月 15 日
Sorry, is the question about drawing something, or about computing coordinates? Is the grid purely square? regular Rectangular? Different rectangle sizes in different locations? Does the item being subdivided convex? A regular polyhedra? How many dimensions are being worked in? When you talk of subdividing it into N pieces, is that N per axis or N total? If N total, then what if N is not a perfect square number but the area to be subdivided is?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!