Example #1
0
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(
         uuid=meshId, data=geometryencoder.encodePolyData(polyData)),
                                       notify=False)
Example #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
Example #3
0
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(uuid=meshId, data=geometryencoder.encodePolyData(polyData)), notify=False)