uncommented the include of plystuff to avoid duplicate symbols

This commit is contained in:
gabryon99 2021-09-13 21:05:08 +02:00 committed by gabryon99
parent 2a5c9bfb61
commit 4595f32202
1 changed files with 11 additions and 11 deletions

View File

@ -1,11 +1,11 @@
#include <bitset> #include <bitset>
// #include <wrap/ply/plystuff.h>
#include <wrap/io_trimesh/import.h>
#include <vcg/complex/algorithms/align_pair.h> #include <vcg/complex/algorithms/align_pair.h>
#include <vcg/space/index/grid_static_obj.h> #include <vcg/space/index/grid_static_obj.h>
#include <wrap/ply/plystuff.h>
#include <wrap/io_trimesh/import.h>
#ifndef VCGLIB_OCCUPANCY_GRID_H #ifndef VCGLIB_OCCUPANCY_GRID_H
#define VCGLIB_OCCUPANCY_GRID_H #define VCGLIB_OCCUPANCY_GRID_H
@ -197,10 +197,10 @@ namespace vcg {
bb.SetNull(); bb.SetNull();
totalbb.SetNull(); totalbb.SetNull();
std::fprintf(stdout, "OG::AddMesh:Scanning BBoxex\n"); std::fprintf(stdout, "OG::AddMesh:Scanning BBoxes\n");
for (std::size_t i = 0; i < names.size(); ++i) { for (std::size_t i = 0; i < names.size(); ++i) {
vcg::ply::ScanBBox(names[i].c_str(),bb); // vcg::ply::ScanBBox(names[i].c_str(), bb, true);
totalbb.Add(trv[i], bb); totalbb.Add(trv[i], bb);
} }
@ -294,7 +294,7 @@ namespace vcg {
int m_s = vi->first.first; int m_s = vi->first.first;
int m_t = vi->first.second; int m_t = vi->first.second;
int area = vi->second; int area = vi->second;
SVA.push_back( OGArcInfo (m_s,m_t,area,float(area)/float(min(VM[m_s].area,VM[m_t].area)) )); SVA.push_back( OGArcInfo (m_s,m_t,area,float(area)/float(std::min(VM[m_s].area,VM[m_t].area)) ));
} }
} }