https://github.com/wildmeshing/fTetWild
Raw File
Tip revision: d50d7941606e69dff0342859c8b09539e16aa8a2 authored by Daniele Panozzo on 24 October 2022, 15:47:19 UTC
fix compilation on ubuntu 22.04
Tip revision: d50d794
save_all_confs.py
import os
import importlib
import build_cut_table as tt
pt = importlib.import_module("plot-tet")


def main():
    args = lambda: None

    folder = os.path.join(os.getcwd(), "confs")

    if not os.path.exists(folder):
        os.makedirs(folder)


    old_file = os.path.join(os.getcwd(), "temp-plot.html")
    table = tt.CutTable()
    for i in range(len(table.table)):
        args.all = -i
        pt.main(args)
        if os.path.exists(old_file):
            os.rename(old_file, os.path.join(folder, "conf_{}.html".format(i)))


if __name__ == '__main__':
    main()
back to top