Ask Your Question

show polyhedron in an interact

asked 2010-10-01 18:14:58 +0200

Philipp Schneider gravatar image

Hi, I am trying to write an interact which lets the user enter a list of vertices and then shows the corresponding polyhedron.

My first attempt is the following. The problem is that Sage does not show the polyhedron.

def _(t1=text_control("Polyhedron"), vertices="[[1,0],[0,1],[0,0]]"):

Does anybody know how to fix this?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2010-10-01 18:43:44 +0200

mhampton gravatar image

I don't completely understand why this is happening, but to work around it you can use the Polyhedron's projection method (the most flexible solution) or more simply the render_solid and render_wireframe methods. For example:

def _(t1=text_control("Polyhedron"), vertices="[[1,0],[0,1],[0,0]]"):
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2010-10-01 18:14:58 +0200

Seen: 365 times

Last updated: Oct 01 '10