Author: Not specified Language: python
Description: Not specified Timestamp: 2018-06-04 04:04:29 +0000
View raw paste Reply
  1. base = "bun000"
  2. meshes = ["bun045", "bun090","bun315","bun270","bun180"]
  3.  
  4. relations = {
  5.           "bun000" : None,
  6.           "bun045" : "bun000",
  7.           "bun090" : "bun045",
  8.           "bun270" : "bun315",
  9.           "bun180" : "bun270",
  10.           "bun315" : "bun000"
  11.           }
  12.  
  13.  
  14. for mesh in meshes:
  15.     print("##########################################################")
  16.     basePointSet = basesPoints[relations[mesh]]
  17.     baseNormals = basesNormals[relations[mesh]]
  18.  
  19.     icp = ICP(basePointSet, baseNormals=None, dataSize=1000)
  20.    
  21.     meshObj = duplicate(getObject(mesh))
  22.     meshNormals = getNormals(meshObj)
  23.     newPointSet = icp.meshObject(meshObj, meshNormals = None)
  24.     meshNormals = getNormals(meshObj)
  25.  
  26.     icp.move()
  27.  
  28.     basesPoints[mesh] = newPointSet
  29.     basesNormals[mesh] = meshNormals
  30.     i += 1
  31.     print("##########################################################")
View raw paste Reply