Spaces:
Sleeping
Sleeping
Download view/mesh_plotter/plot.py from arzhela/QuadOpt-RL: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/arzhela/QuadOpt-RL/resolve/main/view/mesh_plotter/plot.py
- Command line
-
hf download hf://spaces/arzhela/QuadOpt-RL/view/mesh_plotter/plot.py
-
curl -L -o plot.py https://huggingface.co/spaces/arzhela/QuadOpt-RL/resolve/main/view/mesh_plotter/plot.py
570 Bytes
| from mesh_model.mesh_analysis.quadmesh_analysis import QuadMeshTopoAnalysis | |
| from view.mesh_plotter.mesh_plots import plot_dataset, plot_mesh, save_dataset_plot | |
| from mesh_model.reader import read_dataset, read_gmsh, read_json | |
| # dataset = read_dataset("../../training/dataset/results/bunny-3darts") | |
| # #plot_dataset(dataset) | |
| # save_dataset_plot(dataset, "Supplementary_plots/.png") | |
| # print("File saved") | |
| cmap = read_gmsh("../../mesh_files/imr3.msh") # ../../training/dataset/results/imr3_results/mesh_0.json | |
| ma = QuadMeshTopoAnalysis(cmap) | |
| plot_mesh(ma.mesh, scores=True) | |