CSGPrimitives2D.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
CSGPrimitive2D¶ Parent class(es)
Base class for 2D primitives
-
std::size_t
dim() const¶ Return dimension of geometry
-
std::size_t
-
class
Circle¶ Parent class(es)
This class describes a 2D circle which can be used to build geometries using Constructive Solid Geometry (CSG).
-
Circle(double x0, double x1, double r, std::size_t fragments = 32)¶ Create circle at x = (x0, x1) with radius r.
- Arguments
- x0 (double)
- x0-coordinate of center.
- x1 (double)
- x1-coordinate of center.
- r (double)
- radius.
- fragments (std::size_t)
- number of fragments.
-
std::string
str(bool verbose) const¶ Informal string representation
-
double
radius() const¶ Return radius of circle
-
std::size_t
fragments() const¶ Return number of fragments around the circle
-
-
class
Ellipse¶ Parent class(es)
This class describes a 2D ellipse which can be used to build geometries using Constructive Solid Geometry (CSG).
-
Ellipse(double x0, double x1, double a, double b, std::size_t fragments = 32)¶ Create ellipse at x = (x0, x1) with horizontal semi-axis a and vertical semi-axis b.
- Arguments
- x0 (double)
- x0-coordinate of center.
- x1 (double)
- x1-coordinate of center.
- a (double)
- horizontal semi-axis.
- b (double)
- vertical semi-axis.
- fragments (std::size_t)
- number of fragments.
-
std::string
str(bool verbose) const¶ Informal string representation
-
double
a() const¶ Return horizontal semi-axis
-
double
b() const¶ Return vertical semi-axis
-
std::size_t
fragments() const¶ Return number of fragments around the ellipse
-
-
class
Rectangle¶ Parent class(es)
This class describes a 2D rectangle which can be used to build geometries using Constructive Solid Geometry (CSG).
-
Rectangle(double x0, double x1, double y0, double y1)¶ Create rectangle defined by two opposite corners x = (x0, x1) and y = (y0, y1).
- Arguments
- x0 (double)
- x0-coordinate of first corner.
- x1 (double)
- x1-coordinate of first corner.
- y0 (double)
- y0-coordinate of second corner.
- y1 (double)
- y1-coordinate of second corner.
-
std::string
str(bool verbose) const¶ Informal string representation
-