示例#1
0
 def primitives_per_edge(self):
     v = self.v.r.reshape((-1, 3))
     f = self.f
     vpe = get_vertices_per_edge(v, f)
     fpe = get_faces_per_edge(v, f, vpe)
     return fpe, vpe
示例#2
0
def edge_defs(v,f):
    fb = face_bases(v, f)
    fpe = get_faces_per_edge(v.r, f)
    return ndot(fb[fpe[:,0]], ch.linalg.inv(fb[fpe[:,1]]))
示例#3
0
文件: renderer.py 项目: cadik/opendr
 def primitives_per_edge(self):
     v=self.v.r.reshape((-1,3))
     f=self.f
     vpe = get_vertices_per_edge(v, f)
     fpe = get_faces_per_edge(v, f, vpe)
     return fpe, vpe