Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include "malevich.h"
using namespace malevich;
int main(int argc, char **argv)
{
auto cloud = pcloud::null();
... тут посчитал все
d->RecoveryDepthMapFromImages();
for(auto i = 0; i < d->getPointCloud().size(); ++i)
{
math::vec3 pos(d->getPointCloud()[i].x,
d->getPointCloud()[i].x,
d->getPointCloud()[i].z);
math::vec4 col(d->getPointCloudRGB()[i].val[0],
d->getPointCloudRGB()[i].val[1],
d->getPointCloudRGB()[i].val[2],
1.0);
cloud->push_back({pos, col});
}
cloud->save("test.vox");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.