show mesh now accepts a named tuple or a trimesh mesh objects
@@ -96,15 +96,15 @@ def show_mesh(mesh): # pragma: no cover
fig : Matplotlib figure
A handle to a matplotlib 3D axis
"""
- lim_max = np.amax(mesh.verts, axis=0)
- lim_min = np.amin(mesh.verts, axis=0)
+ lim_max = np.amax(mesh.vertices, axis=0)
+ lim_min = np.amin(mesh.vertices, axis=0)
# Display resulting triangular mesh using Matplotlib.
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
# Fancy indexing: `verts[faces]` to generate a collection of triangles
- mesh = Poly3DCollection(mesh.verts[mesh.faces])
+ mesh = Poly3DCollection(mesh.vertices[mesh.faces])
mesh.set_edgecolor('k')
ax.add_collection3d(mesh)
