Use gfx.show

Demonstrates show utility

show util
import pygfx as gfx

cube = gfx.Mesh(
    gfx.box_geometry(100, 100, 100),
    gfx.MeshPhongMaterial(color="red"),
)

if __name__ == "__main__":
    disp = gfx.Display()
    disp.show(cube)

Total running time of the script: (0 minutes 9.600 seconds)

Gallery generated by Sphinx-Gallery