Skip to content

Commit

Permalink
Explicit substraction instead of typo wrt '->' (#3611)
Browse files Browse the repository at this point in the history
Explicit substraction instead of typo wrt '->'
  • Loading branch information
taketwo authored Jan 29, 2020
2 parents 79a11f7 + e19ef95 commit c898e44
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions surface/include/pcl/surface/3rdparty/poisson4/octree_poisson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ namespace pcl
template <class NodeData,class Real>
OctNode<NodeData,Real>* OctNode<NodeData,Real>::__faceNeighbor(int dir,int off,int forceChildren){
if(!parent){return NULL;}
int pIndex=int(this-parent->children);
int pIndex=int(this-(parent->children));
pIndex^=(1<<dir);
if((pIndex & (1<<dir))==(off<<dir)){return &parent->children[pIndex];}
else{
Expand All @@ -877,7 +877,7 @@ namespace pcl
template <class NodeData,class Real>
const OctNode<NodeData,Real>* OctNode<NodeData,Real>::__faceNeighbor(int dir,int off) const {
if(!parent){return NULL;}
int pIndex=int(this-parent->children);
int pIndex=int(this-(parent->children));
pIndex^=(1<<dir);
if((pIndex & (1<<dir))==(off<<dir)){return &parent->children[pIndex];}
else{
Expand Down Expand Up @@ -912,7 +912,7 @@ namespace pcl
template <class NodeData,class Real>
const OctNode<NodeData,Real>* OctNode<NodeData,Real>::__edgeNeighbor(int o,const int i[2],const int idx[2]) const{
if(!parent){return NULL;}
int pIndex=int(this-parent->children);
int pIndex=int(this-(parent->children));
int aIndex,x[DIMENSION];

Cube::FactorCornerIndex(pIndex,x[0],x[1],x[2]);
Expand Down Expand Up @@ -941,7 +941,7 @@ namespace pcl
template <class NodeData,class Real>
OctNode<NodeData,Real>* OctNode<NodeData,Real>::__edgeNeighbor(int o,const int i[2],const int idx[2],int forceChildren){
if(!parent){return NULL;}
int pIndex=int(this-parent->children);
int pIndex=int(this-(parent->children));
int aIndex,x[DIMENSION];

Cube::FactorCornerIndex(pIndex,x[0],x[1],x[2]);
Expand Down Expand Up @@ -977,7 +977,7 @@ namespace pcl
int pIndex,aIndex=0;
if(!parent){return NULL;}

pIndex=int(this-parent->children);
pIndex=int(this-(parent->children));
aIndex=(cornerIndex ^ pIndex); // The disagreement bits
pIndex=(~pIndex)&7; // The antipodal point
if(aIndex==7){ // Agree on no bits
Expand Down Expand Up @@ -1025,7 +1025,7 @@ namespace pcl
int pIndex,aIndex=0;
if(!parent){return NULL;}

pIndex=int(this-parent->children);
pIndex=int(this-(parent->children));
aIndex=(cornerIndex ^ pIndex); // The disagreement bits
pIndex=(~pIndex)&7; // The antipodal point
if(aIndex==7){ // Agree on no bits
Expand Down

0 comments on commit c898e44

Please sign in to comment.