 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
29 if (m_normals.capacity() < newCount) {
31 m_normals.reserve(newCount);
32 }
catch (
const std::bad_alloc&) {
41 bool resize(
unsigned newCount)
override {
47 if (m_normals.capacity() != 0) {
49 m_normals.resize(newCount);
50 }
catch (
const std::bad_alloc&) {
62 assert(m_normals.size() < m_normals.capacity());
63 m_normals.push_back(N);
67 std::vector<CCVector3>&
normals() {
return m_normals; }
70 const std::vector<CCVector3>&
normals()
const {
return m_normals; }
74 return !m_normals.empty() && m_normals.size() >=
size();
77 return &m_normals[pointIndex];
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
bool resize(unsigned newCount) override
Resizes the point database.
Definition: CVPointCloud.h:41
void addNormal(const CCVector3 &N)
Adds a normal.
Definition: CVPointCloud.h:61
bool normalsAvailable() const override
Returns whether normals are available.
Definition: CVPointCloud.h:73
std::vector< CCVector3 > & normals()
Returns the set of normals.
Definition: CVPointCloud.h:67
int size
Definition: FileIOFactory.cpp:130
Definition: PointCloudTpl.h:23
const std::vector< CCVector3 > & normals() const
Returns the set of normals (const version)
Definition: CVPointCloud.h:70
Definition: CVPointCloud.h:18
bool reserveNormals(unsigned newCount)
Reserves memory to store the normals.
Definition: CVPointCloud.h:28
std::vector< CCVector3 > m_normals
Point normals (if any)
Definition: CVPointCloud.h:82
::ccPointCloud PointCloud
Definition: PointCloud.h:19
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15
const CCVector3 * getNormal(unsigned pointIndex) const override
If per-point normals are available, returns the one at a specific index.
Definition: CVPointCloud.h:76