Basic 3d Objects


To use the following commands you must import them with the following code:

from sage.plot.plot3d.shapes import *

Sage can plot the following basic 3D shapes:

  • Sphere, with the Sphere() command
  • Cone, with the Cone() command
  • Torus, with the Torus() command
  • Box, with the Box() command
  • A bounding box, or the smalles box that can fit a given shape, with the .bounding_box() method.
  • Cylinder, with the Cylinder() command
  • Line Segments (drawn as a cylinder from a start point to an end point with a given radius), with the LineSegment() command
  • Text (a label displayed at a given 3d point), with the Text() command
  • Arrows (drawn as a cylinder and cone), with the arrow3d() command

Information on dimensions for each of these shapes can be obtained by inputting the command name for the shape followed by a question mark like so:

from sage.plot.plot3d.shapes import *

Sage Cell


from sage.plot.plot3d.shapes import *




Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.




Date: 21 Aug 2019 23:14

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License