#NEWLINE# def _find_next_simplified_point( self , pos , max_distance ) : #NEWLINE# #INDENT# for candidate in range ( ( pos + 1 ) , ( len ( self . points ) - 1 ) ) : #NEWLINE# #INDENT# for i in range ( ( pos + 1 ) , candidate ) : #NEWLINE# #INDENT# d = mod_geo . distance_from_line ( pos . points [ i ] , self . points [ pos ] , self . points [ candidate ] ) #NEWLINE# if ( d > max_distance ) : #NEWLINE# #INDENT# return ( candidate - 1 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None