Skip to content

Commit

Permalink
fixes and->&&
Browse files Browse the repository at this point in the history
Signed-off-by: Perminder Singh <[email protected]>
  • Loading branch information
perminder-17 authored Nov 16, 2024
1 parent e06bbc8 commit b33f001
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions avogadro/qtgui/meshgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ void MeshGenerator::FlyingEdgesAlgorithmPass2()
ge2.xstart += isCutCase[4];
ge2.ystart += isCutCase[7];
}
if(isXEnd and isYEnd)
if(isXEnd && isYEnd)
{
ge1.zstart += isCutCase[11];
}
if(isXEnd and isZEnd)
if(isXEnd && isZEnd)
{
ge2.ystart += isCutCase[5];
}
if(isYEnd and isZEnd)
if(isYEnd && isZEnd)
{
ge3.xstart += isCutCase[6];
}
Expand Down Expand Up @@ -410,7 +410,7 @@ void MeshGenerator::FlyingEdgesAlgorithmPass4()
if(isCutCase[11])
{
int idx = ge1.zstart + z1counter;
if(isXEnd and isYEnd)
if(isXEnd && isYEnd)
{
std::array<float, 3> interpolatedPoint = interpolateOnCube(pointCube, isovalCube, 11);

Expand All @@ -425,7 +425,7 @@ void MeshGenerator::FlyingEdgesAlgorithmPass4()
if(isCutCase[5])
{
int idx = ge2.ystart + y2counter;
if(isXEnd and isZEnd)
if(isXEnd && isZEnd)
{
std::array<float, 3> interpolatedPoint = interpolateOnCube(pointCube, isovalCube, 5);

Expand All @@ -441,7 +441,7 @@ void MeshGenerator::FlyingEdgesAlgorithmPass4()
if(isCutCase[6])
{
int idx = ge3.xstart + x3counter;
if(isYEnd and isZEnd)
if(isYEnd && isZEnd)
{
std::array<float, 3> interpolatedPoint = interpolateOnCube(pointCube, isovalCube, 6);
std::array<float, 3> interpolatedNormal = interpolateOnCube(gradCube, isovalCube, 6);
Expand Down

1 comment on commit b33f001

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.