Abstract geometric data structures (sknano.core.geometric_regions
)¶
Contents¶
Base/mixin classes for all geometric regions¶
GeometricRegion () |
Abstract base class for all geometric regions. |
Geometric2DRegion () |
Abstract base class for representing 2D geometric regions. |
Geometric3DRegion () |
Abstract base class for representing 3D geometric regions. |
GeometricTransformsMixin |
Mixin class providing methods for applying linear algebra transforms to geometric regions. |
2D Regions¶
Parallelogram ([o, u, v]) |
Geometric2DRegion for a parallelogram. |
Rectangle ([pmin, pmax, xmin, ymin, xmax, ymax]) |
Geometric2DRegion for a rectangle. |
Square ([center, a]) |
Geometric2DRegion for a square. |
Ellipse ([center, rx, ry]) |
Geometric2DRegion for an ellipse. |
Circle ([center, r]) |
Geometric2DRegion for a circle. |
Triangle ([p1, p2, p3]) |
Geometric2DRegion for a triangle. |
3D Regions¶
Parallelepiped ([o, u, v, w]) |
Geometric3DRegion for a parallelepiped. |
Cuboid ([pmin, pmax, xmin, ymin, zmin, xmax, ...]) |
Geometric3DRegion for a cuboid. |
Cube ([center, a]) |
Geometric3DRegion for a cube. |
Ellipsoid ([center, rx, ry, rz]) |
Geometric3DRegion for an ellipsoid. |
Sphere ([center, r]) |
Geometric3DRegion for a sphere. |
Cylinder ([p1, p2, r]) |
Geometric3DRegion for a cylinder. |
Cone ([p1, p2, r]) |
Geometric3DRegion for a cone. |