Hello,
I was making some tries with 3D.
I don't succeed to make cube correctly:
Here is my code:

c=cube((0,0,0),size=2,opacity=0.1,color='red')
c+=point((2/3,2/3,0),color='green',size=10)
c+=cube(center=(2/3,2/3,0),size=1/3,opacity=0.8)
show(c)

I draw a point with coord (2/3,2/3,0)
Then I draw a cube centered on this point with size 1/3

When I display with JMol, the point is outside the cube...

Is it a bug ? Perhaps I've missed something with the instruction
cube()
It seems that sage multiplies by size all the coordinates of the cube, even the center, not only the length.

Try size=1, size=10 and size=0.1. The center of the cube changes.

F.

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to