GetSelectedCloudPoints
原型
std::vector<Pos> GetSelectedCloudPoints(unsigned id);
参数
- id 点云对象的id
返回值
点云对象被选中点的坐标的列表
例子
// 已知点云id为pointCloudId, 输出所有被选中点的坐标
auto selectedPoints = mpl::GetSelectedCloudPoints(pointCloudId);
for(const auto& pnt: selectedPoints) {
std::cout << pnt.x << " "<< pnt.y << " " << pnt.z << "\n";
}