Skip to content

Can you access vertices and UV of a face in PyWavefront? #146

@nickponline

Description

@nickponline

@einarf How do you find the vertices and UV associated with a face. I can access the faces (scene.mesh_list[0].faces) and the vertices and UV of each material:

for name, material in scene.materials.items():
    print(name)
    print("   ", material.vertex_format) # T2F_V3F
    print("   ", len(material.vertices))

But no matter what I try I cannot take a face (v1, v2, v3) and find the vertices and UV associated with it? Am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions