Skip to content

Commit

Permalink
MRMeshToDistanceVolume.cpp: delete unused struct MinMax
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedr committed Jul 8, 2024
1 parent 00472f0 commit 8d6d379
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions source/MRMesh/MRMeshToDistanceVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,6 @@ float signedDistanceToMesh( const MeshPart& mesh, const Vector3f& p, SignDetecti
return dist;
}

template <typename T>
struct MinMax
{
T min = std::numeric_limits<T>::max();
T max = std::numeric_limits<T>::lowest();

void update( T v )
{
if ( v < min )
min = v;
if ( max < v )
max = v;
}

static MinMax<T> merge( const MinMax<T>& a, const MinMax<T>& b )
{
return {
.min = std::min( a.min, b.min ),
.max = std::max( a.max, b.max ),
};
}
};

} // namespace

namespace MR
Expand Down

0 comments on commit 8d6d379

Please sign in to comment.