mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: use lambda instead of define.
This commit is contained in:
@@ -226,7 +226,7 @@ public:
|
|||||||
const cvf::Vec3d& p0,
|
const cvf::Vec3d& p0,
|
||||||
const cvf::Vec3d& p1 )
|
const cvf::Vec3d& p1 )
|
||||||
{
|
{
|
||||||
#define isFace( faceEnum ) ( 0 <= faceEnum && faceEnum <= 5 )
|
auto isFace = []( int faceEnum ) { return 0 <= faceEnum && faceEnum <= 5; };
|
||||||
using FaceType = cvf::StructGridInterface::FaceType;
|
using FaceType = cvf::StructGridInterface::FaceType;
|
||||||
|
|
||||||
if ( isFace( cellFaceForEachClippedTriangleEdge[triVxIdx] ) )
|
if ( isFace( cellFaceForEachClippedTriangleEdge[triVxIdx] ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user