コード例 #1
0
ファイル: meshmanager.py プロジェクト: zhouchangSJTU/director
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(
         uuid=meshId, data=geometryencoder.encodePolyData(polyData)),
                                       notify=False)
コード例 #2
0
ファイル: meshmanager.py プロジェクト: tkoolen/director
 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
コード例 #3
0
ファイル: meshmanager.py プロジェクト: caomw/director
 def _publishMesh(self, meshId):
     polyData = self.meshes[meshId]
     self.collection.updateDescription(dict(uuid=meshId, data=geometryencoder.encodePolyData(polyData)), notify=False)