Commit e8553fa6 authored by Franjo's avatar Franjo
Browse files

Warnings when the region for finding the nearest point is negative

parent ab945e4c
......@@ -136,6 +136,16 @@ void meshOctree::findNearestSurfacePointInRegion
const point& p
) const
{
if( region < 0 )
{
WarningIn
(
"void meshOctree::findNearestSurfacePointInRegion(point&, scalar&,"
"label&, const label, const point&) const"
) << "Region " << region << " is not valid!" << endl;
return;
}
const label cLabel = findLeafContainingVertex(p);
vector sizeVec;
if( cLabel < 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment