[Done] Center of Bbox
Posted: Wed Sep 14, 2011 3:15 pm
I've had this code in : "ccPropertiesTreeDelegate.cpp", at the end of : "void ccPropertiesTreeDelegate::fillWithHObject(ccHObject* _obj)"
The aim is to show on the Properties, the center of the bounding box.
Is it possible to add this functionality to the next release of CloudCompare?
--
Maxime SEGUIN
Ecole Nationale des Sciences Géographiques
Code: Select all
model->setRowCount(++curRow+1);
item = new QStandardItem("Box Center");
item->setFlags(Qt::ItemIsEnabled);
model->setItem(curRow,0,item);
CCVector3 bboxCenter = box.getCenter();
item = new QStandardItem(QString("(%1; %2; %3)").arg(bbosCenter.x,0,'f',3).arg(bbosCenter.y,0,'f',3).arg(bbosCenter.z,0,'f',3));
item->setFlags(Qt::ItemIsEnabled);
model->setItem(curRow,1,item);
Is it possible to add this functionality to the next release of CloudCompare?
--
Maxime SEGUIN
Ecole Nationale des Sciences Géographiques