mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00
15 lines
341 B
Python
15 lines
341 B
Python
from dracodec_maya import Draco
|
|
|
|
drc = Draco()
|
|
mesh = drc.decode('bunny.drc')
|
|
|
|
print("\n==== FACES ====")
|
|
print(mesh.faces_num)
|
|
print(mesh.faces[0:10])
|
|
print("\n==== VERTICES ====")
|
|
print(mesh.vertices_num)
|
|
print(mesh.vertices[0:10])
|
|
print("\n==== NORMALS ====")
|
|
print(mesh.normals_num)
|
|
# print(mesh.normals[0:10]) This mesh has no normals
|