21 #ifndef SUPER_ELLIPSOID_MODEL_H
22 #define SUPER_ELLIPSOID_MODEL_H
24 #include "VectorTypes.h"
62 inline static Vec3f sample(
float xyAngle,
float xzAngle,
float n1,
float n2,
float scale);
102 static void create(
int samples,
float n1,
float n2,
float scale,
float** roundedCubeCoordinates,
float** roundedCubeNormalVectors,
int* numberOfVertices,
int* numberOfCoordinates,
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.
Functions for generating super ellipsoid shapes.
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.
float * roundedCubeNormalVectors
float * roundedCubeCoordinates