summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index a34d2eb..704d6fa 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -1271,6 +1271,15 @@ cdef class Torus(Object):
self._object = dmnsn_new_torus(major_radius, minor_radius)
Object.__init__(self, *args, **kwargs)
+cdef class Teapot(Object):
+ """The Utah teapot."""
+ def __init__(self, *args, **kwargs):
+ """
+ Create a Teapot. Teapot() accepts any arguments that Object() accepts.
+ """
+ self._object = dmnsn_new_teapot()
+ Object.__init__(self, *args, **kwargs)
+
cdef class Union(Object):
"""A CSG union."""
def __init__(self, objects, *args, **kwargs):