Ask Your Question

Revision history [back]

click to hide/show revision 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'))