Refactor: use lambda instead of define.

This commit is contained in:
Kristian Bendiksen committed 2024-04-10 13:34:41 +02:00
1 parent c367fe5e7f
commit 7836181ad1
1 file changed
+1 -1
@@ -226,7 +226,7 @@ public:
const cvf::Vec3d& p0,
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;
if ( isFace( cellFaceForEachClippedTriangleEdge[triVxIdx] ) )