wypr/dataset/scannet/vis.py [59:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if not output_file.endswith('.ply'):
        print_error('output file must be a .ply file')
    colors = create_color_palette()
    num_colors = len(colors)
    axis_align_matrix = load_align_matrix(meta_file)

    with open(mesh_file, 'rb') as f:
        plydata = PlyData.read(f)
        num_verts = plydata['vertex'].count
        if num_verts != len(labels):
            print_error('#predicted labels = ' + str(len(labels)) + 'vs #mesh vertices = ' + str(num_verts))
        plydata = align_axis(num_verts, plydata, axis_align_matrix)
        # *_vh_clean_2.ply has colors already
        for i in range(num_verts):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



wypr/dataset/scannet/vis.py [82:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if not output_file.endswith('.ply'):
        print_error('output file must be a .ply file')
    colors = create_color_palette()
    num_colors = len(colors)
    axis_align_matrix = load_align_matrix(meta_file)

    with open(mesh_file, 'rb') as f:
        plydata = PlyData.read(f)
        num_verts = plydata['vertex'].count
        if num_verts != len(labels):
            print_error('#predicted labels = ' + str(len(labels)) + 'vs #mesh vertices = ' + str(num_verts))
        plydata = align_axis(num_verts, plydata, axis_align_matrix)
        # *_vh_clean_2.ply has colors already
        for i in range(num_verts):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



