mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Do not log when a degenerate polygon is detected
Do not log here - this is a common situation when cube faces only touch at edges or corners. The logging system can be flooded in some cases.
This commit is contained in:
1 parent
88b88e6d1e
commit
7a029b2de7
1 file changed
+4
-5
@@ -607,13 +607,12 @@ bool GeometryTools::calculateOverlapPolygonOfTwoQuads( std::vector<IndexType>&
|
||||
if ( polygon.back() == polygon.front() ) polygon.pop_back();
|
||||
}
|
||||
|
||||
// Sanity checks with logging
|
||||
// Sanity checks
|
||||
if ( polygon.size() < 3 )
|
||||
{
|
||||
caf::PdmLogging::warning( QString( "GeometryTools: Generated degenerate polygon with %1 vertices. "
|
||||
"Input faces may not overlap significantly. Tolerance=%2" )
|
||||
.arg( polygon.size() )
|
||||
.arg( tolerance ) );
|
||||
// Do not log here - this is a common situation when cube faces only touch at edges or corners. The logging system can be flooded in
|
||||
// some cases.
|
||||
|
||||
polygon.clear();
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user