self.vertices = [Vertex(v) for v in self.vertices]
self.faces = [Face(f) for f in self.polygons]
self.edges = [Edge(e) for e in self.edges]
- self.edge_map = {e.key: e for e in self.edges}
self.loops = self.loops[:]
self.materials = self.materials[:]
for v in self.vertices:
v.groups = [VertexGroup(g) for g in v.groups]
+ edge_map = {e.key: e for e in self.edges}
for f in self.faces:
if len(f.vertices)>4:
raise ValueError("Ngons are not supported")
v.faces.append(f)
for k in f.edge_keys:
- e = self.edge_map[k]
+ e = edge_map[k]
e.faces.append(f)
f.edges.append(e)
for e in self.edges[offset:]:
e.index += offset
e.key = make_edge_key(e.vertices[0].index, e.vertices[1].index)
- self.edge_map[e.key] = e
self.lines += other.lines
ne.faces.append(f)
e = ne
else:
- del self.edge_map[e.key]
self.vertices[i].edges.remove(e)
e.vertices[e.vertices.index(self.vertices[i])] = v
v.edges.append(e)
e.key = make_edge_key(e.vertices[0].index, e.vertices[1].index)
- self.edge_map[e.key] = e
for f in g:
self.vertices[i].faces.remove(f)