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
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]]))
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