Esempio n. 1
0
 def vertices(self):
     vxs = []
     for i, vx in enumerate(self.PV):
         v = Vertex()
         v.index = i
         pos = vx.recVertex().position()
         v.x, v.y, v.z = pos.x(), pos.y(), pos.z()
         v.tracks = len(vx.vxTrackAtVertex())
         vxs.append(v)
     return vxs
Esempio n. 2
0
 def truth_vertices(self):
     vxs = []
     GEN_AOD = self.sg["GEN_AOD"]
     vertices = make_list(GEN_AOD[0].vertices_begin(),GEN_AOD[0].vertices_end())
     for i, vx in enumerate(vertices):
         if i==10: break
         v = Vertex()
         v.index = i
         pos = vx.position()
         v.x, v.y, v.z = pos.x(), pos.y(), pos.z()
         vxs.append(v)
     return vxs
Esempio n. 3
0
def make_vertex(vx):
    v = Vertex()
    v.x, v.y, v.z = vx.x(), vx.y(), vx.z()
    return v