format occupancy_grid.h

This commit is contained in:
gabryon99 2021-09-15 23:47:42 +02:00
parent 30f0383fc6
commit 6d7eeb4908
1 changed files with 8 additions and 12 deletions

View File

@ -75,7 +75,7 @@ namespace vcg {
if (cnt == c.cnt) return false;
size_t ii = 0;
std::size_t ii = 0;
while (ii < MeshCounter::MaxVal()){
if (cnt[ii] != c.cnt[ii]) {
@ -95,9 +95,9 @@ namespace vcg {
public:
int id; // the id of the mesh
int area; // number of voxels in the OG touched by this mesh
int coverage; // quanto e' ricoperta da altre mesh eccetto se stessa (eg: se ho due mesh di 1000 con overlap al 30% la covrg e' 300)
int id {-1}; // the id of the mesh
int area {0}; // number of voxels in the OG touched by this mesh
int coverage {0}; // quanto e' ricoperta da altre mesh eccetto se stessa (eg: se ho due mesh di 1000 con overlap al 30% la covrg e' 300)
bool used = false;
@ -106,12 +106,8 @@ namespace vcg {
// are covered by <i> othermeshes. Sum(densityDistribution) == area;
// if densityDistribution[1] > 0 means that this mesh is the unique to cover some portion of the space.
OGMeshInfo() {
Init(-1);
}
void Init(int _id) {
coverage=0;area=0; id=_id;
id=_id;
}
bool operator < (OGMeshInfo &o) const {