meshlabxml/transform.py
def translate(script, value=(0.0, 0.0, 0.0)):
    """An alternative translate implementation that uses a geometric function.
    This is more accurate than the built-in version."""
    # Convert value to list if it isn't already
    if not isinstance(value, list):
        value = list(value)
    vert_function(script,
             x_func='x+(%s)' % value[0],
             y_func='y+(%s)' % value[1],
             z_func='z+(%s)' % value[2])
    return None
def translate(script, value=(0.0, 0.0, 0.0)):
    # Convert value to list if it isn't already
    if not isinstance(value, list):
        value = list(value)
    vert_function(script,
             x_func='x+(%s)' % value[0],
             y_func='y+(%s)' % value[1],
             z_func='z+(%s)' % value[2])
    return None
def translate ( script , value = ( 0.0 , 0.0 , 0.0 ) ) : # Convert value to list if it isn't already if not isinstance ( value , list ) : value = list ( value ) vert_function ( script , x_func = 'x+(%s)' % value [ 0 ] , y_func = 'y+(%s)' % value [ 1 ] , z_func = 'z+(%s)' % value [ 2 ] ) return None
An alternative translate implementation that uses a geometric function.
    This is more accurate than the built-in version.
An alternative translate implementation that uses a geometric function . This is more accurate than the built - in version .