21 #ifndef SUPER_ELLIPSOID_MODEL_H
22 #define SUPER_ELLIPSOID_MODEL_H
31 class SuperEllipsoidModel
89 const Vec3f& normalVector,
91 int& normalVectorIndex,
126 int* numberOfVertices,
127 int* numberOfCoordinates,
128 int* numberOfNormals);
static void storeVertexAndNormalVectorInArray(const Vec3f &vertex, const Vec3f &normalVector, int &vertexIndex, int &normalVectorIndex, float *roundedCubeCoordinates, float *roundedCubeNormalVectors)
Put vertex and normal vector values into vertex array and normal vector array.
static Vec3f calculateNormal(float xyAngle, float xzAngle, float n1, float n2, float scale)
Compute normal vector of a super ellipsoid.
static Vec3f sample(float xyAngle, float xzAngle, float n1, float n2, float scale)
Compute vertex of a super ellipsoid.
A 3D floating point vector.
static void create(int samples, float n1, float n2, float scale, float **roundedCubeCoordinates, float **roundedCubeNormalVectors, int *numberOfVertices, int *numberOfCoordinates, int *numberOfNormals)
Function that generates vertices and normal vectors of rounded cube.
static const int numberOfPointCoordinates
Number of coordinates for a point in 3D space.
float * roundedCubeNormalVectors
float * roundedCubeCoordinates