16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_SHAPES_ISHAPE_H
21 #define BORNAGAIN_SAMPLE_SHAPES_ISHAPE_H
39 virtual std::vector<kvector_t>
vertices()
const;
53 std::vector<kvector_t>
EllipseVertices(
double r_x,
double r_y,
double z);
std::vector< kvector_t > RectangleVertices(double length, double width, double z)
Helper functions to construct lists of vertices.
std::vector< kvector_t > EllipseVertices(double r_x, double r_y, double z)
Generate vertices of centered ellipse with given semi-axes at height z.
Defines basic vectors in Z^3, R^3, C^3.
Abstract base class for different shapes.
virtual std::vector< kvector_t > vertices() const
Retrieves a list of the vertices constituting this concrete shape.
static const size_t N_Circle
std::vector< kvector_t > m_vertices
List of vertices initialized during construction.