def resolve_inside_vertex(self, _local_v_id, _dc_quads):
# all quads connected to the vertex will be removed anyhow
delete_quads_list = self.manifold_vertex_quad_ids[_local_v_id]
new_quads_list = []
# change all references to old manifold vertex to references to the right child vertex
for q_id in delete_quads_list:
quad = _dc_quads[q_id]
tmp = quad.index(self.v_idx[_local_v_id])
new_quad = list(quad)
for child_id in range(2):
if np.intersect1d(quad, self.v_children_connection_idx[_local_v_id][child_id]).__len__() != 0:
new_quad[tmp] = self.v_children_idx[_local_v_id][child_id]
break
new_quads_list.append(new_quad)
return new_quads_list, delete_quads_list
评论列表
文章目录