Skip to main content

GetCloudPoints

原型

std::vector<Pos> GetCloudPoints(unsigned id);

参数

  • id 点云对象的id

返回值

点云对象包含的所有点的坐标的列表

示例

// 已知点云id为pointCloudId, 输出所有点的坐标

auto points = mpl::GetCloudPoints(pointCloudId);
for(const auto& pnt: points) {
std::cout << pnt.x << " "<< pnt.y << " " << pnt.z << "\n";
}