Skip to content

Commit

Permalink
Remove fprintf log messages that are redundant with new exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-packard committed Mar 6, 2019
1 parent 2ce2f1d commit abbe953
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ namespace pcl
template< int Degree >
void BSplineElements< Degree >::upSample( BSplineElements< Degree >& high ) const
{
fprintf (stderr, "[ERROR] B-spline up-sampling not supported for degree %d\n", Degree);
POISSON_THROW_EXCEPTION (pcl::poisson::PoissonBadArgumentException, "B-spline up-sampling not supported for degree " << Degree);
}
template<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,9 @@ namespace pcl
int& idx = cData[ treeNodes[i] ][c];
if ( idx<0 )
{
fprintf (stderr, "[ERROR] Found unindexed corner nodes[%d][%d] = %d (%d,%d)\n", treeNodes[i]->nodeData.nodeIndex, c, idx, minDepth, maxDepth);
int _d, _off[3];
treeNodes[i]->depthAndOffset (_d, _off);
printf ("(%d [%d %d %d) <-> (%d [%d %d %d])\n", minDepth, off[0], off[1], off[2], _d, _off[0], _off[1], _off[2]);
printf ("[%d %d]\n", spans[d].first, spans[d].second);

#pragma omp critical
{
// found unindexed corner
++paralellExceptionCount;
}
}
Expand Down Expand Up @@ -419,10 +414,9 @@ namespace pcl
int& idx = eData[treeNodes[i]][e];
if (idx < 0)
{
fprintf (stderr, "[ERROR] Found unindexed edge %d (%d,%d)\n", idx, minDepth, maxDepth);

#pragma omp critical
{
// found unindexed edge
++paralellExceptionCount;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ namespace pcl
{
if (count > _maxEntriesPerRow)
{
fprintf (stderr, "[ERROR] Cannot set row size on contiguous matrix: %d<=%d\n", count, _maxEntriesPerRow);
POISSON_THROW_EXCEPTION (pcl::poisson::PoissonBadArgumentException, "Attempted to set row size on contiguous matrix larger than max row size: (requested)"<< count << " > (maximum)" << _maxEntriesPerRow );
}
rowSizes[row] = count;
Expand Down

0 comments on commit abbe953

Please sign in to comment.