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