简体   繁体   中英

Create a hash of a mesh in Blender python

How do I create a hash from mesh data ( mesh.toString ?). So identical meshes will generate the same hash.

How can this be done in python?

感谢 tzamans 评论,我能够使用 hashlib 生成:

hash = hashlib.sha224( str(plain_verts).strip('[]').encode('utf-8') ).hexdigest()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM