def __init__(self, elements=[], text=False, byte_order='=',
                 comments=[], obj_info=[]):
        '''
        elements: sequence of PlyElement instances.
        text: whether the resulting PLY file will be text (True) or
            binary (False).
        byte_order: '<' for little-endian, '>' for big-endian, or '='
            for native.  This is only relevant if `text' is False.
        comments: sequence of strings that will be placed in the header
            between the 'ply' and 'format ...' lines.
        obj_info: like comments, but will be placed in the header with
            "obj_info ..." instead of "comment ...".
        '''
        if byte_order == '=' and not text:
            byte_order = _native_byte_order

        self.byte_order = byte_order
        self.text = text

        self.comments = list(comments)
        self.obj_info = list(obj_info)
        self.elements = elements

        elements: sequence of PlyElement instances.
        text: whether the resulting PLY file will be text (True) or
            binary (False).
        byte_order: '<' for little-endian, '>' for big-endian, or '='
            for native.  This is only relevant if `text' is False.
        comments: sequence of strings that will be placed in the header
            between the 'ply' and 'format ...' lines.
        obj_info: like comments, but will be placed in the header with
            "obj_info ..." instead of "comment ...".
        
visualizer/plyfile.py