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