28 static void ReleaseUniqueInstance();
32 return static_cast<unsigned>(
38 return GetUniqueInstance()->
getNormal(normIndex);
41 return GetUniqueInstance()->
getNormal(normIndex);
43 static inline const std::vector<CCVector3>&
GetNormals() {
52 return m_theNormalVectors[normIndex];
55 return m_theNormalVectors[normIndex];
57 inline const std::vector<CCVector3>&
getNormals()
const {
58 return m_theNormalVectors;
60 inline std::vector<CCVector3>&
getNormals() {
return m_theNormalVectors; }
66 return GetNormIndex(N.
u);
102 static bool ComputeCloudNormals(
107 Orientation preferredOrientation = UNDEFINED,
139 Orientation preferredOrientation);
147 static void ConvertNormalToStrikeAndDip(
const CCVector3& N,
159 static void ConvertNormalToDipAndDipDir(
const CCVector3& N,
180 static QString ConvertStrikeAndDipToString(
double& strike_deg,
199 static void ConvertNormalToHSV(
const CCVector3& N,
218 bool enableNormalHSVColorsArray();
221 const ecvColor::Rgb& getNormalHSVColor(
unsigned index)
const;
225 return m_theNormalHSVColors;
229 static bool ComputeNormalWithLS(
237 static bool ComputeNormalWithTri(
245 static bool ComputeNormalWithQuadric(
269 static bool ComputeNormsAtLevelWithQuadric(
271 void** additionalParameters,
274 static bool ComputeNormsAtLevelWithLS(
276 void** additionalParameters,
279 static bool ComputeNormsAtLevelWithTri(
281 void** additionalParameters,
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Array of compressed 3D normals (single index)
A 3D cloud interface with associated features (color, normals, octree, etc.)
Compressed normal vectors handler.
const std::vector< CCVector3 > & getNormals() const
const std::vector< ecvColor::Rgb > & getNormalHSVColorArray() const
Returns the HSV color array.
static CompressedNormType GetNormIndex(const CCVector3 &N)
Returns the compressed index corresponding to a normal vector (shortcut)
const CCVector3 & getNormal(unsigned normIndex) const
Returns the precomputed normal corresponding to a given compressed index.
std::vector< CCVector3 > m_theNormalVectors
Compressed normal vectors.
std::vector< CCVector3 > & getNormals()
std::vector< ecvColor::Rgb > m_theNormalHSVColors
'HSV' colors corresponding to each compressed normal index
static std::vector< CCVector3 > & GetNormalsPtr()
static const CCVector3 & GetNormal(unsigned normIndex)
Static access to ccNormalVectors::getNormal.
static unsigned GetNumberOfVectors()
Returns the number of compressed normal vectors.
Orientation
'Default' orientations
static const std::vector< CCVector3 > & GetNormals()
static CCVector3 & GetNormalPtr(unsigned normIndex)
CCVector3 & getNormal(unsigned normIndex)
The octree structure used throughout the library.
A generic 3D point cloud with index-based and presistent access to points.
unsigned int CompressedNormType
Compressed normals type.