parameters: (self,face1,face2)
return_statement: return False
docstring: Checks if face1 overlaps face2 in Z direction
docstring_summary: Checks if face1 overlaps face2 in Z direction
docstring_tokens: Checks if face1 overlaps face2 in Z direction
function: def zOverlaps(self,face1,face2):
          "Checks if face1 overlaps face2 in Z direction"
          face1 = self.flattenFace(face1)
          face2 = self.flattenFace(face2)
  
          if (not face1) or (not face2):
              return False
  
          # first we check if one of the verts is inside the other face
          for v in face1[0].Vertexes:
              if self.isInside(v,face2):
                  return True
  
          # even so, faces can still overlap if their edges cross each other
          for e1 in face1[0].Edges:
              for e2 in face2[0].Edges:
                  if DraftGeomUtils.findIntersection(e1,e2):
                      return True
          return False
function_tokens: def zOverlaps ( self , face1 , face2 ) : face1 = self . flattenFace ( face1 ) face2 = self . flattenFace ( face2 ) if ( not face1 ) or ( not face2 ) : return False # first we check if one of the verts is inside the other face for v in face1 [ 0 ] . Vertexes : if self . isInside ( v , face2 ) : return True # even so, faces can still overlap if their edges cross each other for e1 in face1 [ 0 ] . Edges : for e2 in face2 [ 0 ] . Edges : if DraftGeomUtils . findIntersection ( e1 , e2 ) : return True return False