Skip to content

How do I extract the colors of each vertex after loading the .obj file ? #130

@HaziqRazali

Description

@HaziqRazali

How do I extract the colors of each vertex after loading the .obj file? I am only able to extract the coordinates of each vertex using the code below. How about the colors of each vertex?

    object = Wavefront(object_name+".obj", create_materials=True, collect_faces=True)

    # collect faces
    faces = []
    for mesh in object.mesh_list:
        faces = faces + mesh.faces
    
    # collect vertices
    vertices = object.vertices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions