qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
Normal compressor. More...
#include <ccNormalCompressor.h>
Static Public Member Functions | |
static unsigned | Compress (const PointCoordinateType N[3]) |
Compression algorithm. More... | |
static void | Decompress (unsigned index, PointCoordinateType N[3], unsigned char level=QUANTIZE_LEVEL) |
Decompression algorithm. More... | |
static void | InvertNormal (CompressedNormType &code) |
Inverts a (compressed) normal. | |
Static Public Attributes | |
static const unsigned char | QUANTIZE_LEVEL = 9 |
Compressed normals quantization level (number of directions: 2^(2*N+3)) More... | |
static const unsigned | MAX_VALID_NORM_CODE = (1 << (QUANTIZE_LEVEL * 2 + 3)) - 1 |
Last valid normal code. | |
static const unsigned | NULL_NORM_CODE = MAX_VALID_NORM_CODE + 1 |
Null normal code. | |
Normal compressor.
|
static |
Compression algorithm.
compute in which sector lie the elements
scale the sectored vector - early return for null vector
compute the box
then for each required level, quantize...
|
static |
Decompression algorithm.
special case for the null code
recompute the box in the sector...
|
static |
Compressed normals quantization level (number of directions: 2^(2*N+3))