.. automodule:: +ott.+shapes
This section provides an overview of the shapes currently in the toolbox.
.. autoclass:: Shape
.. autoclass:: AxisymShape
.. autoclass:: StarShape
.. autoclass:: Cube
.. autoclass:: RectangularPrism
.. autoclass:: Cylinder
.. autoclass:: Ellipsoid
.. autoclass:: Sphere
.. autoclass:: Superellipsoid
These classes can be used to create shapes by combining simple geometric shapes or other shape objects. For instance, the union class can be used to create a union of two spheres:
shape1 = ott.shapes.Sphere(1.0, [0, 0, -2]); shape2 = ott.shapes.Sphere(1.0, [0, 0, 2]); union = ott.shapes.Union([shape1, shape2]);
.. autoclass:: Union :members: Union
.. todo:: We will probably add other sets in future including differences or exclusions.
.. autoclass:: AxisymLerp
.. autoclass:: TriangularMesh
.. autoclass:: StlLoader
.. autoclass:: WavefrontObj