diff --git a/doc/All.ipynb b/doc/All.ipynb index 23255f1..732f775 100644 --- a/doc/All.ipynb +++ b/doc/All.ipynb @@ -183,8 +183,7 @@ "solver.set_boundary_side_set_from_bary(sideset)\n", "ps, ts, s = solver.get_boundary_sidesets()\n", "\n", - "col = np.zeros_like(s); col[s==2] = 2; col[s==3] = 3\n", - "mp.plot(ps, ts, col)" + "mp.plot(ps, ts, s)" ] }, { @@ -301,16 +300,8 @@ }, "outputs": [], "source": [ - "adj, _ = igl.tet_tet_adjacency(t_uni)\n", - "\n", - "igl_faces = [[0,1,2], [0,1,3], [1,2,3], [2,0,3]]\n", - "surf = []\n", - "for t in range(adj.shape[0]):\n", - " for f in range(adj.shape[1]):\n", - " face = igl_faces[f]\n", - " if adj[t, f] == -1:\n", - " surf += [[t_uni[t, face[0]], t_uni[t, face[1]], t_uni[t, face[2]]]]\n", - "surf = np.array(surf)" + "surf = igl.boundary_facets(t_uni)\n", + "\n" ] }, {