def setEdgeMaximumMinimum(edge, vertexes):
 beginIndex = edge.vertexIndexes[0]
 endIndex = edge.vertexIndexes[1]
 if ((beginIndex >= len(vertexes)) or (endIndex >= len(vertexes))):
  print 'Warning, there are duplicate vertexes in setEdgeMaximumMinimum in triangle_mesh.'
  print 'Something might still be printed, but there is no guarantee that it will be the correct shape.'
  edge.zMaximum = (-987654321.0)
  edge.zMinimum = (-987654321.0)
  return
 beginZ = vertexes[beginIndex].z
 endZ = vertexes[endIndex].z
 edge.zMinimum = min(beginZ, endZ)
 edge.zMaximum = max(beginZ, endZ)

def setEdgeMaximumMinimum ( edge , vertexes ) : beginIndex = edge . vertexIndexes [ 0 ] endIndex = edge . vertexIndexes [ 1 ] if ( ( beginIndex >= len ( vertexes ) ) or ( endIndex >= len ( vertexes ) ) ) : print 'Warning, there are duplicate vertexes in setEdgeMaximumMinimum in triangle_mesh.' print 'Something might still be printed, but there is no guarantee that it will be the correct shape.' edge . zMaximum = ( - 987654321.0 ) edge . zMinimum = ( - 987654321.0 ) return beginZ = vertexes [ beginIndex ] . z endZ = vertexes [ endIndex ] . z edge . zMinimum = min ( beginZ , endZ ) edge . zMaximum = max ( beginZ , endZ )
set the edge maximum and minimum .