Rectangle¶
-
class
dolfin.cpp.mesh.
Rectangle
(*args)¶ Bases:
dolfin.cpp.mesh.CSGPrimitive2D
This class describes a 2D rectangle which can be used to build geometries using Constructive Solid Geometry (CSG).
Create rectangle defined by two opposite corners x = (x0, x1) and y = (y0, y1).
- Arguments
- x0 (float)
- x0-coordinate of first corner.
- x1 (float)
- x1-coordinate of first corner.
- y0 (float)
- y0-coordinate of second corner.
- y1 (float)
- y1-coordinate of second corner.
-
first_corner
()¶ Return first corner
-
second_corner
()¶ Return second corner
-
thisown
¶ The membership flag