diff --git a/apps/sample/space_packer/space_packer.cpp b/apps/sample/space_packer/space_packer.cpp index d6ccf321..919d6c05 100644 --- a/apps/sample/space_packer/space_packer.cpp +++ b/apps/sample/space_packer/space_packer.cpp @@ -57,7 +57,7 @@ static void buildRandRectSet(int rectNum, vector &rectVec) } } -int main( int argc, char **argv ) +int main( int /*argc*/, char **/*argv*/ ) { vector trVec; vector trPolyVec; diff --git a/vcg/space/rasterized_outline2_packer.h b/vcg/space/rasterized_outline2_packer.h index e6eac310..1ff81fcb 100644 --- a/vcg/space/rasterized_outline2_packer.h +++ b/vcg/space/rasterized_outline2_packer.h @@ -523,6 +523,7 @@ public: finalArea += tri::OutlineUtil::Outline2Area(oldPoints); } // printf("PACKING EFFICIENCY: %f with scale %f\n", finalArea/gridArea, latestSuccessScale); + return true; } //tries to pack polygons using the given gridSize and scaleFactor