Re: [sage-support] Re: help needed with cube

2011-02-17 Thread Robert Bradshaw
On Sun, Jan 30, 2011 at 6:42 AM, Loïc xl...@free.fr wrote: Do you think it's better to report it as a bug? Yes. http://trac.sagemath.org/sage_trac/ticket/10796 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: help needed with cube

2011-01-30 Thread Loïc
Thanks you very much for your reply You're right, size affects the center too. Not very intuituive but now, I know it. I think this behaviour is quite surprising. For example, with sphere, size doesn't affect center On 29 jan, 20:04, Francois Maltey fmal...@nerim.fr wrote: Hello, I

Re: [sage-support] Re: help needed with cube

2011-01-30 Thread Robert Bradshaw
On Sun, Jan 30, 2011 at 2:55 AM, Loïc xl...@free.fr wrote: Thanks you very much for your reply You're right, size affects the center too. Not very intuituive but now, I know it. I think this behaviour is quite surprising. For example, with sphere, size doesn't affect center I might go

[sage-support] Re: help needed with cube

2011-01-30 Thread Loïc
Do you think it's better to report it as a bug? Loïc PS: A little program that draws Menger's sponge def menger(size,p,x,y,z,start): if(p0): start+=1 newsize=size/3 graphic=menger(newsize,p-1,x+newsize,y+newsize,z,start)

[sage-support] Re: help needed with cube

2011-01-30 Thread Marshall Hampton
You can also doing this using the built-in cube in the polyhedra module. Polyhedra can be rescaled and translated; this does something close to what it looked like you were trying: sage: c = polytopes.n_cube(3) sage: c2 = c*2 sage: p = point((2/3,2/3,0),color='green',size=10) sage: c3 = (1/3)*c

Re: [sage-support] Re: help needed with cube

2011-01-30 Thread Francois Maltey
Robert Bradshaw wrote : On Sun, Jan 30, 2011 at 2:55 AM, Loďc xl...@free.fr wrote: You're right, size affects the center too. Not very intuituive but now, I know it. I think this behaviour is quite surprising. For example, with sphere, size doesn't affect center I might go so