During running my plugin, I add points in a ccPointCloud object. How can I refresh it so that I can get a real-time updated pointcloud view?
Code: Select all
ccMainAppInterface *m_app;
ccHObject *container;
ccPointCloud *pc;
container = new ccHObject("Scan001");
pc = new ccPointCloud("RealScan");
container->addChild(pc);
m_app->addToDB(container, true, true);
for(...){
pc->addPoint(CCVector3(......)); // addPoint here
.......// I try to refresh the view of pc here.
}