Esempio n. 1
0
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(
         uuid=meshId, data=geometryencoder.encodePolyData(polyData)),
                                       notify=False)
Esempio n. 2
0
 def add(self, polyData, publish=True):
     meshId = newUUID()
     self.meshes[meshId] = polyData
     if publish:
         self.collection.updateDescription(dict(uuid=meshId, data=geometryencoder.encodePolyData(polyData)), notify=False)
     return meshId
Esempio n. 3
0
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(uuid=meshId, data=geometryencoder.encodePolyData(polyData)), notify=False)