meshlabxml/transform.py
def freeze_matrix(script, all_layers=False):
    """ Freeze the current transformation matrix into the coordinates of the
        vertices of the mesh (and set this matrix to the identity).

    In other words it applies in a definitive way the current matrix to the
    vertex coordinates.

    Args:
        script: the FilterScript object or script filename to write
            the filter to.
        all_layers (bool): If selected the filter will be applied to all
            visible mesh layers.

    """
    filter_xml = ''.join([
        '  <filter name="Freeze Current Matrix">\n',
        '    <Param name="allLayers" ',
        'value="%s" ' % str(all_layers).lower(),
        'description="Apply to all visible Layers" ',
        'type="RichBool" ',
        '/>\n',
        '  </filter>\n'])
    util.write_filter(script, filter_xml)
    return None
def freeze_matrix(script, all_layers=False):
    """ Freeze the current transformation matrix into the coordinates of the
        vertices of the mesh (and set this matrix to the identity).

    In other words it applies in a definitive way the current matrix to the
    vertex coordinates.

    Args:
        script: the FilterScript object or script filename to write
            the filter to.
        all_layers (bool): If selected the filter will be applied to all
            visible mesh layers.

    """
    filter_xml = ''.join([
        '  <filter name="Freeze Current Matrix">\n',
        '    <Param name="allLayers" ',
        'value="%s" ' % str(all_layers).lower(),
        'description="Apply to all visible Layers" ',
        'type="RichBool" ',
        '/>\n',
        '  </filter>\n'])
    util.write_filter(script, filter_xml)
    return None
def freeze_matrix ( script , all_layers = False ) : filter_xml = '' . join ( [ '  <filter name="Freeze Current Matrix">\n' , '    <Param name="allLayers" ' , 'value="%s" ' % str ( all_layers ) . lower ( ) , 'description="Apply to all visible Layers" ' , 'type="RichBool" ' , '/>\n' , '  </filter>\n' ] ) util . write_filter ( script , filter_xml ) return None
Freeze the current transformation matrix into the coordinates of the
        vertices of the mesh (and set this matrix to the identity).

    In other words it applies in a definitive way the current matrix to the
    vertex coordinates.

    Args:
        script: the FilterScript object or script filename to write
            the filter to.
        all_layers (bool): If selected the filter will be applied to all
            visible mesh layers.
Freeze the current transformation matrix into the coordinates of the vertices of the mesh ( and set this matrix to the identity ) .