| 1 | initial version |
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:
@interact
def _(t1=text_control("Polyhedron"), vertices="[[1,0],[0,1],[0,0]]"):
p=Polyhedron(vertices=eval(vertices))
show(p.render_solid(rgbcolor='green')+p.render_wireframe(rgbcolor='red'))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.