Docs
class Viewer¶
add_button(text, cb)
add_dropdown(options, default, desc, cb)
add_edges(vertices, edges, shading={}, obj=None)
add_lines(beginning, ending, shading={}, obj=None)
add_mesh(v, f, c=None, uv=None, shading={})
add_points(points, shading={}, obj=None)
add_text(text, shading={})
launch()
remove_object(obj_id)
reset()
to_html()
update()
update_object(oid=0, vertices=None, colors=None, faces=None)
Helper functions¶
gen_checkers = gen_checkers(n_checkers_x, n_checkers_y, width=256, height=256)
get_colors = get_colors(inp, colormap='viridis', normalize=True, vmin=None, vmax=None)
plot = plot(v, f, c=None, uv=None, shading={}, plot=None, return_plot=False)
subplot = subplot(v, f, c=None, uv=None, shading={}, s=[1, 1, 0], data=None)