21 static const unsigned char QUANTIZE_LEVEL =
25 static const unsigned MAX_VALID_NORM_CODE =
26 (1 << (QUANTIZE_LEVEL * 2 + 3)) - 1;
28 static const unsigned NULL_NORM_CODE = MAX_VALID_NORM_CODE + 1;
36 unsigned char level = QUANTIZE_LEVEL);
float PointCoordinateType
Type of the coordinates of a (N-D) point.
static void InvertNormal(CompressedNormType &code)
Inverts a (compressed) normal.
static unsigned Compress(const PointCoordinateType N[3])
Compression algorithm.
static void Decompress(unsigned index, PointCoordinateType N[3], unsigned char level=QUANTIZE_LEVEL)
Decompression algorithm.
unsigned int CompressedNormType
Compressed normals type.