ChunkedPointCloud replacement
Posted: Tue Nov 27, 2018 9:04 am
Hello,
I plan to work on a prototype of plugin which have been coded this spring. This plugin use the ChunkedPointCloud Class, which have been deleted with the 6 July commit.
I was wondering which class i can use instead ?
I found that PointCloud had the same methods than ChunkedPointCloud, but i'm still wondering how to convert
with :
Now i have :
but there is no conversion between ccPointCloud* to PointCloud*, thus I don't know how to convert a selected entity to a PointCloud.
How can I do this?
Thanks for your time,
Olivier
I plan to work on a prototype of plugin which have been coded this spring. This plugin use the ChunkedPointCloud Class, which have been deleted with the 6 July commit.
I was wondering which class i can use instead ?
I found that PointCloud had the same methods than ChunkedPointCloud, but i'm still wondering how to convert
Code: Select all
this->m_selectedEntities = m_app->getSelectedEntities();
ccClassification classif;
ccPointCloud* pc = static_cast<ccPointCloud*>(m_selectedEntities[0]);
classif.KMeans(pc, 3, 10);
Code: Select all
void ccClassification::KMeans(ChunkedPointCLoud* theCloud, unsigned nbIteration, unsigned nbClasse)
Code: Select all
void ccClassification::KMeans(CCLib::PointCloud* theCloud, unsigned nbIteration, unsigned nbClasse)
How can I do this?
Thanks for your time,
Olivier