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]));
Defines the macro ASSERT.
#define ASSERT(condition)
static Mesh meshCuboctahedron(float rH, float alpha, float H)
static Mesh makeMesh(const Vertices &vs, Vertices const *ns=nullptr)
QVector< Vert_Normal > Mesh
void addQuad(const Vector3D &, const Vector3D &, const Vector3D &, const Vector3D &)