def getNormalByPath(path):
 totalNormal = Vector3()
 for (pointIndex, point) in enumerate(path):
  center = path[((pointIndex + 1) % len(path))]
  end = path[((pointIndex + 2) % len(path))]
  totalNormal += getNormalWeighted(point, center, end)
 return totalNormal.getNormalized()

def getNormalByPath ( path ) : totalNormal = Vector3 ( ) for ( pointIndex , point ) in enumerate ( path ) : center = path [ ( ( pointIndex + 1 ) % len ( path ) ) ] end = path [ ( ( pointIndex + 2 ) % len ( path ) ) ] totalNormal += getNormalWeighted ( point , center , end ) return totalNormal . getNormalized ( )
get normal by path .