#include <vector>
#include <cstdint>
#include <iostream>
#include <exception>
int main()
{
try
{
rdb.
open(
"pointcloud.rdbx", settings);
rdb,
"Fill",
"Point Classifier v1.0"
);
{
using namespace riegl::rdb::pointcloud;
const uint8_t point_class = 0;
const uint8_t point_color[4] = {255, 255, 255, 255};
fill.bindBuffer(RDB_RIEGL_RGBA, point_color);
while (const uint32_t count = fill.next(10000))
{
std::cout << fill.progress() << "% done" << std::endl;
}
}
{
using namespace riegl::rdb::pointcloud;
const uint8_t point_class = 101;
const uint8_t point_color[4] = {255, 102, 0, 255};
fill.bindBuffer(RDB_RIEGL_RGBA, point_color);
while (const uint32_t count = fill.next(10000))
{
std::cout << fill.progress() << "% done" << std::endl;
}
}
return 0;
}
{
std::cerr << error.
what() <<
" (" << error.
details() <<
")" << std::endl;
return 1;
}
catch(const std::exception &error)
{
std::cerr << error.what() << std::endl;
return 1;
}
}