Skip to content

Incorrect number of vertices. #30

@rainbain

Description

@rainbain

When I print out the number of vertices in a mesh I get 4096, but the mesh only has 1089 vertices according to blender and that there are 1089 lines in the file starting with "v ". Both loader.LoadedVertices and loader.LoadedMeshes[0].Vertices have 4096 vertices. The loaded mesh works fine with OpenGL using a vertex array. It is hard to think that this would be a bug so here is a part of my code:
objl::Loader loader; bool error = loader.LoadFile(path); if (error == 0) { printf("Failed to load %s\n", path); return; } printf("Vertices.. %d\n", loader.LoadedMeshes[0].Vertices.size());
(I am new to github and I do not know how to make it put line spaces in the code!)
Also I am using the latest version of c++.

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