3D plotting¶
-
medianshape.viz.plot3d.get_colors(n)[source]¶ Returns a function that maps each index in 0, 1, ... N-1 to a distinct RGB color.
-
medianshape.viz.plot3d.plotmesh3d(mesh, title='', figname=None, file_doc=None, save=True)[source]¶ Plots a tetrahedralized mesh.
-
medianshape.viz.plot3d.plot_point3d(mesh, vertex_vector, title=None, color='black', marker='.', s=200, label='')[source]¶ Plots points in 3D.
-
medianshape.viz.plot3d.plot_curve3d(mesh, func_path, title=None, color='black', marker=None, linewidth=3, ls='-', label='', set_lim=False)[source]¶ Plots a curve.
-
medianshape.viz.plot3d.plot_simplices3d(mesh, simplices, title=None, figname=None, file_doc=None, save=True, color='y')[source]¶ Plots 3-simplices (tetrahedras).
-
medianshape.viz.plot3d.plot_curves_approx3d(mesh, points, vertices, paths, figname=None, file_doc=None, save=True, title=None)[source]¶ Plots curves described as points along with corresponding interpolated curves in a tetrahedralized mesh.
-
medianshape.viz.plot3d.plot_curve_approx3d(mesh, input_points, closest_vertices, path, title=None, color='red', linewidth=3, label='')[source]¶ Plots a curve described as points along with a corresponding interpolated curve in a tetrahedralized mesh.
-
medianshape.viz.plot3d.plot_median3d(mesh, input_currents, t, title='', figname='', file_doc=None, save=True)[source]¶ Plots a median curve in a tetrahedralized mesh. Find the following line in the code and uncomment if you want to plot median on mesh.
ax.plot_trisurf(mesh.points[:,0], mesh.points[:,1], mesh.points[:,2], triangles=mesh.triangles, color=(0.8, 0.9, 1), shade=False)