From ad18b003df49dd0e1799a85d4e3dd50eaa7653fb Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Fri, 18 May 2018 10:31:06 +0200 Subject: [PATCH] verbose output for AABB asserts --- src/core/math/GenericAABB.impl.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/math/GenericAABB.impl.h b/src/core/math/GenericAABB.impl.h index dc2fe1e80..00503076f 100644 --- a/src/core/math/GenericAABB.impl.h +++ b/src/core/math/GenericAABB.impl.h @@ -33,7 +33,7 @@ template< typename T > GenericAABB< T >::GenericAABB() : minCorner_( value_type(0), value_type(0), value_type(0) ), maxCorner_( value_type(0), value_type(0), value_type(0) ) { - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); WALBERLA_ASSERT( empty() ); } @@ -51,7 +51,7 @@ inline GenericAABB< T >::GenericAABB( const GenericAABB< U > & other ) : minCorner_( other.minCorner() ), maxCorner_( other.maxCorner() ) { - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -78,7 +78,7 @@ GenericAABB< T >::GenericAABB( const vector_type & corner0, const vector_type & } } - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -130,7 +130,7 @@ GenericAABB< T >::GenericAABB( const value_type x0, const value_type y0, const v maxCorner_[2] = z0; } - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -160,7 +160,7 @@ GenericAABB< T >::GenericAABB( InputIterator first, InputIterator last ) init(); } - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -177,7 +177,7 @@ template< typename T > GenericAABB< T >::GenericAABB( const vector_type & theMinCorner, const vector_type & theMaxCorner, MinMaxCornerGivenT ) : minCorner_( theMinCorner ), maxCorner_( theMaxCorner ) { - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -200,7 +200,7 @@ GenericAABB< T >::GenericAABB( const GenericAABB & lhs, const GenericAABB & rhs std::max( minCorner_[1], std::min( lhs.maxCorner_[1], rhs.maxCorner_[1] ) ), std::max( minCorner_[2], std::min( lhs.maxCorner_[2], rhs.maxCorner_[2] ) ) ) { - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } @@ -222,7 +222,7 @@ GenericAABB< T >::GenericAABB( const value_type minX, const value_type minY, con const value_type maxX, const value_type maxY, const value_type maxZ, MinMaxCornerGivenT ) : minCorner_( minX, minY, minZ ), maxCorner_( maxX, maxY, maxZ ) { - WALBERLA_ASSERT( checkInvariant() ); + WALBERLA_ASSERT( checkInvariant(), *this ); } -- GitLab