I got my 8 coordonates, I wanna plot a cube. When I all my coords in pointplot3d, it connects p1 to p2 to p3 ..to p8 so it doesn't make a cube. How do I make it so it connects the coords I want to make the cube. Thank you
If you give pointplot3d a list of points and use the option style=line, it will connect those points in the order given. In order to make the edges of a cube, you could give it a list corresponding to a path traversing all edges of the cube. Each point will be repeated at least twice.
There are some other ways to draw a cube that you may find simpler. For example:
> plots[display](plottools[cuboid]([0,0,0],[1,1,1]), axes=boxed, scaling=constrained);
If you just want the lines, you could try adding style=wireframe and color=black. You can make these changes using the context menu as well.
You can also check out the help page for plots[polyhedraplot] (use with option polytope=hexahedron)).
Well I need to do it with pointplot3d, because it is just to get started. After when I understand everything I have to do a 3d picture that has atleast 30 points.
In your final picture are you going to want lines? If so then I would not suggest using pointplot. pointplot is for drawing points; there are other commands for drawing lines. I suggest you have a look at the help page for the "curve" command. Bring up the help browser and search "curve"; you are looking for the entry for "curve,plottools".
Cube
If you give pointplot3d a list of points and use the option style=line, it will connect those points in the order given. In order to make the edges of a cube, you could give it a list corresponding to a path traversing all edges of the cube. Each point will be repeated at least twice.
Still same problem
View 6892_Cube.mw on MapleNet or Download 6892_Cube.mw
View file details
Will Maple connect all my coords in the order I type them or?
Same problem
Yes, it will, but you need to give it a list (in [] brackets) rather than a set (in {}).
Try
Other ways to make a cube
There are some other ways to draw a cube that you may find simpler. For example:
> plots[display](plottools[cuboid]([0,0,0],[1,1,1]), axes=boxed, scaling=constrained);
If you just want the lines, you could try adding style=wireframe and color=black. You can make these changes using the context menu as well.
You can also check out the help page for plots[polyhedraplot] (use with option polytope=hexahedron)).
Paulina Chin
Maplesoft
Well
Well I need to do it with pointplot3d, because it is just to get started. After when I understand everything I have to do a 3d picture that has atleast 30 points.
pointplot for points
In your final picture are you going to want lines? If so then I would not suggest using pointplot. pointplot is for drawing points; there are other commands for drawing lines. I suggest you have a look at the help page for the "curve" command. Bring up the help browser and search "curve"; you are looking for the entry for "curve,plottools".
David Clayworth Maplesoft GUI Developer