yt-project / widgyts

Widgets for yt
https://widgyts.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Color faces for mesh viewer #102

Open matthewturk opened 9 months ago

matthewturk commented 9 months ago

This will load up a mesh viewer:

import yt
import widgyts
ds = yt.load_sample("MOOSE_sample_data/out.e-s010", step=-1)
dsv = widgyts.DatasetViewer(ds = ds)
dsv.widget()

Right now the mesh is just a wireframe. Having the faces colored would be awfully nice as well, especially if they could be toggled on and off.