19 RippleCosine::RippleCosine(
double length,
double width,
double height)
21 size_t n_y = IShape::N_Circle + 1;
22 double y_step = width / (IShape::N_Circle);
24 for (
size_t i = 0; i < n_y; ++i) {
25 double y = i * y_step - width / 2.0;
26 double z = height * (1.0 + std::cos(2.0 * M_PI * y / width)) / 2.0;
32 RippleCosine::~RippleCosine() =
default;
Defines class RippleCosine.
std::vector< kvector_t > m_vertices
List of vertices initialized during construction.