|
60 | 60 | # |
61 | 61 | # Or please consider using numpy_*** interface(e.g. numpy_vertices()) |
62 | 62 |
|
63 | | -for (i, v) in enumerate(attrib.vertices): |
| 63 | +for i, v in enumerate(attrib.vertices): |
64 | 64 | print("v[{}] = {}".format(i, v)) |
65 | 65 |
|
66 | | -for (i, v) in enumerate(attrib.normals): |
| 66 | +for i, v in enumerate(attrib.normals): |
67 | 67 | print("vn[{}] = {}".format(i, v)) |
68 | 68 |
|
69 | | -for (i, v) in enumerate(attrib.texcoords): |
| 69 | +for i, v in enumerate(attrib.texcoords): |
70 | 70 | print("vt[{}] = {}".format(i, t)) |
71 | 71 |
|
72 | 72 | if is_numpy_available: |
|
95 | 95 | for shape in shapes: |
96 | 96 | print(shape.name) |
97 | 97 | print("len(num_indices) = {}".format(len(shape.mesh.indices))) |
98 | | - for (i, idx) in enumerate(shape.mesh.indices): |
| 98 | + for i, idx in enumerate(shape.mesh.indices): |
99 | 99 | print("[{}] v_idx {}".format(i, idx.vertex_index)) |
100 | 100 | print("[{}] vn_idx {}".format(i, idx.normal_index)) |
101 | 101 | print("[{}] vt_idx {}".format(i, idx.texcoord_index)) |
102 | 102 | print("material_ids = {}".format(shape.mesh.material_ids)) |
103 | 103 |
|
104 | 104 | if is_numpy_available: |
105 | 105 | print("numpy_indices = {}".format(shape.mesh.numpy_indices())) |
106 | | - print( |
107 | | - "numpy_num_face_vertices = {}".format(shape.mesh.numpy_num_face_vertices()) |
108 | | - ) |
| 106 | + print("numpy_num_face_vertices = {}".format(shape.mesh.numpy_num_face_vertices())) |
109 | 107 | print("numpy_material_ids = {}".format(shape.mesh.numpy_material_ids())) |
0 commit comments