Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 3D points representing cubes to 3D surface?
Replies: 3   Last Post: Nov 29, 2012 5:56 AM

 Messages: [ Previous | Next ]
 Roger Stafford Posts: 5,929 Registered: 12/7/04
Re: 3D points representing cubes to 3D surface?
Posted: Nov 23, 2012 7:11 PM

"Francisco Seixas" wrote in message <k8ntuj\$aii\$1@newscl01ah.mathworks.com>...
> How can I transform these points into cubes that can be visualized in 3D?
- - - - - - - - - -
If it's of any help, this demonstrates how you can plot a single cube.

A = [0 0 0];
B = [1 0 0];
C = [0 1 0];
D = [0 0 1];
E = [0 1 1];
F = [1 0 1];
G = [1 1 0];
H = [1 1 1];
P = [A;B;F;H;G;C;A;D;E;H;F;D;E;C;G;B];
plot3(P(:,1),P(:,2),P(:,3))
axis equal

Roger Stafford

Date Subject Author
11/23/12 Francisco Seixas
11/23/12 Roger Stafford
11/24/12 Bruno Luong