ChunkedPointCloud replacement

Feel free to ask any question here
Post Reply
Olivier Stocker
Posts: 2
Joined: Tue Nov 13, 2018 11:17 pm

ChunkedPointCloud replacement

Post by Olivier Stocker »

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

Code: Select all

    this->m_selectedEntities = m_app->getSelectedEntities();
    ccClassification classif;
    ccPointCloud* pc = static_cast<ccPointCloud*>(m_selectedEntities[0]);
    classif.KMeans(pc, 3, 10);
with :

Code: Select all

void ccClassification::KMeans(ChunkedPointCLoud* theCloud, unsigned nbIteration, unsigned nbClasse)
Now i have :

Code: Select all

void ccClassification::KMeans(CCLib::PointCloud* theCloud, unsigned nbIteration, unsigned nbClasse)
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
Post Reply