32 template <
unsigned Count>
38 for (
int i = 0; i < Count; ++i) {
39 cosines[i] =
static_cast<float>(cos(
M_PI * i / Count));
40 sines[i] =
static_cast<float>(sin(
M_PI * i / Count));
50 static bool Fpeq(T a, T b, T epsilon =
static_cast<T
>(1.0e-6)) {
51 if (b == 0)
return fabs(a) < epsilon;
53 return fabs(a / b - 1) <= epsilon;
61 const std::vector<float>& second);
67 const std::vector<float>& second);
74 const std::vector<float>& sortedScales,
78 int maxThreadCount = 0,
99 const std::vector<float>& scales,
127 (n1 ?
static_cast<double>(
true1) /
static_cast<double>(n1)
130 (n2 ?
static_cast<double>(
true2) /
static_cast<double>(n2)
132 return (a1 + a2) / 2;
150 const std::vector<float>& scales,
cmdLineReadable * params[]
static const unsigned DESC_DIMENSIONALITY
Set of (core) point descriptors.
A 3D cloud interface with associated features (color, normals, octree, etc.)
Hierarchical CLOUDVIEWER Object.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
A scalar field associated to display-related parameters.
The octree structure used throughout the library.
A generic 3D point cloud with index-based point access.
Main application interface (for plugins)
__host__ __device__ float2 fabs(float2 v)
static void error(char *msg)
Helper: pre-computed cos and sin values between 0 and Pi.