Ask Your Question

Revision history [back]

Use the source: https://github.com/search?q=repo%3Asagemath%2Fsage%20%22def%20tetrahedron%22&type=code

The function is found in the file src/sage/plot/plot3d/platonic.py, so the correct import statement is:

from sage.plot.plot3d.platonic import tetrahedron

Use the source: https://github.com/search?q=repo%3Asagemath%2Fsage%20%22def%20tetrahedron%22&type=code

Or within a SageMath session:

sage: search_src('def tetrahedron')
plot/plot3d/platonic.py:156:def tetrahedron(center=(0, 0, 0), size=1, **kwds):
geometry/polyhedron/library.py:1118:    def tetrahedron(self, backend=None):

The function is found in the file src/sage/plot/plot3d/platonic.py, so the correct import statement is:

from sage.plot.plot3d.platonic import tetrahedron