コード例 #1
0
ファイル: Mesh.py プロジェクト: fathat/game-src
 def calculateBoundingSphere(self):
     #self.boundingSphere = BoundingVolumes.createSphereAroundSpheres( [x.boundingSphere for x in self.meshes ] )
     self.boundingSphere = BoundingVolumes.createSphereAroundPoints(
                                 [vec3(x[0], x[1], x[2]) for x in self.allVertices()] )
コード例 #2
0
 def calculateBoundingSphere(self):
     #self.boundingSphere = BoundingVolumes.createSphereAroundSpheres( [x.boundingSphere for x in self.meshes ] )
     self.boundingSphere = BoundingVolumes.createSphereAroundPoints(
         [vec3(x[0], x[1], x[2]) for x in self.allVertices()])
コード例 #3
0
ファイル: Mesh.py プロジェクト: fathat/game-src
 def calculateBoundingSphere(self):
     self.boundingSphere = BoundingVolumes.createSphereAroundPoints(
                             [vec3(x[0], x[1], x[2]) for x in self.vertices_gl] )
コード例 #4
0
 def calculateBoundingSphere(self):
     self.boundingSphere = BoundingVolumes.createSphereAroundPoints(
         [vec3(x[0], x[1], x[2]) for x in self.vertices_gl])