15 #include "Base/Util/Assert.h"
29 ASSERT(alpha <=
float(M_PI_2));
32 float const D = .5f, t = tanf(
float(M_PI_2) - alpha);
33 float const Db = D - t * H, Dt = D - t * rH * H;
37 float z[] = {0, H, H * (rH + 1)},
39 for (
int i = 0; i < 3; ++i)
40 for (
int x : {-1, +1})
41 for (
int y : {-1, +1}) {
43 vs_.append(
Vector3D(x * di, y * di, z[i]));
46 ASSERT(12 == vs_.count());
62 ASSERT(60 == vs.count());
static Mesh makeMesh(const Vertices &vs, Vertices const *ns=nullptr)
QVector< Vert_Normal > Mesh
static Mesh meshBipyramid4(float rH, float alpha, float H)
void addQuad(const Vector3D &, const Vector3D &, const Vector3D &, const Vector3D &)