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!