Skip to content

Catch Exception on Ascii Ply Β #59

@kzfile

Description

@kzfile

Hello,Is there anythong wrong in the new commit?
I just clone the repository and run the example but got exception when reading example_cube-ascii.ply:

........................................................................
Now Reading: example_cube-ascii.ply
        [ply_header] Type: ascii
        [ply_header] Comment: generated by tinyply 2.3
        [ply_header] element: vertex (24)
        [ply_header]    property: x (type=float)
        [ply_header]    property: y (type=float)
        [ply_header]    property: z (type=float)
        [ply_header]    property: nx (type=float)
        [ply_header]    property: ny (type=float)
        [ply_header]    property: nz (type=float)
        [ply_header]    property: u (type=float)
        [ply_header]    property: v (type=float)
        [ply_header] element: face (12)
        [ply_header]    property: vertex_indices (type=uint) (list_type=uchar)
tinyply exception: the following property keys were not found in the header: red, green, blue, alpha,
tinyply exception: the following property keys were not found in the header: r, g, b, a,
tinyply exception: the element key was not found in the header: tristrips
Caught tinyply exception: unexpected EOF. malformed file?
........................................................................
Now Reading: example_cube-binary.ply
        [ply_header] Type: binary
        [ply_header] Comment: generated by tinyply 2.3
        [ply_header] element: vertex (24)
        [ply_header]    property: x (type=float)
        [ply_header]    property: y (type=float)
        [ply_header]    property: z (type=float)
        [ply_header]    property: nx (type=float)
        [ply_header]    property: ny (type=float)
        [ply_header]    property: nz (type=float)
        [ply_header]    property: u (type=float)
        [ply_header]    property: v (type=float)
        [ply_header] element: face (12)
        [ply_header]    property: vertex_indices (type=uint) (list_type=uchar)
tinyply exception: the following property keys were not found in the header: red, green, blue, alpha,
tinyply exception: the following property keys were not found in the header: r, g, b, a,
tinyply exception: the element key was not found in the header: tristrips
        parsing 0.001217mb in 4.04e-05 seconds [30.1238 MBps]
        Read 24 total vertices
        Read 24 total vertex normals
        Read 24 total vertex texcoords
        Read 12 total faces (triangles)

Same exception occured when I try another ascii ply.
I compiled the code on windows msvc/wsl2 and no one was spared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions