本文整理汇总了Python中panda3d.core.GeomNode.decodeFromBamStream方法的典型用法代码示例。如果您正苦于以下问题:Python GeomNode.decodeFromBamStream方法的具体用法?Python GeomNode.decodeFromBamStream怎么用?Python GeomNode.decodeFromBamStream使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类panda3d.core.GeomNode
的用法示例。
在下文中一共展示了GeomNode.decodeFromBamStream方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: makeGeom
# 需要导入模块: from panda3d.core import GeomNode [as 别名]
# 或者: from panda3d.core.GeomNode import decodeFromBamStream [as 别名]
def makeGeom(self, geom_data):
""" this is for Geoms or GeomNodes """
node = GeomNode('') # use attach new node...
if self.runlocal:
out = geom_data
else:
out = node.decodeFromBamStream(geom_data)
return out
示例2: runner
# 需要导入模块: from panda3d.core import GeomNode [as 别名]
# 或者: from panda3d.core.GeomNode import decodeFromBamStream [as 别名]
def runner():
#print('running')
output = {} #we can probably just merge the dicts after the fact?
idx = []
for i in range(ncores):
bit = pipes[i][0].recv()
output[i]=GeomNode.decodeFromBamStream(bit) #it will match since pipes are named, also recv blocks till close
idx.append( pipes[i][0].recv() )
out = []
for i in range(ncores):
out.append(output[i]) #FIXME risk of missing indicies due to integer //
#print('done running')
return zip(out, idx) #FIXME stuipd