Skip to content

Commit

Permalink
Refactor: use lambda instead of define.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Apr 10, 2024
1 parent c367fe5 commit 7836181
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class MeshLinesAccumulator
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] ) )
Expand Down

0 comments on commit 7836181

Please sign in to comment.