1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-10 17:33:57 +02:00

Mods to allow the manifold experimetal option to be used.

This commit is contained in:
Chris Palmer
2024-02-10 01:05:24 +00:00
parent 9666c018a0
commit 38196e9f78
11 changed files with 21 additions and 12 deletions

View File

@@ -26,6 +26,8 @@ import subprocess, sys
def run_list(args, silent = False, verbose = False):
cmd = ["openscad"] + args + ["--hardwarnings"]
if "-D$manifold=true" in args:
cmd += ["--enable"] + ["manifold"]
if not silent:
for arg in cmd:
print(arg, end=" ")

View File

@@ -26,8 +26,9 @@ def check_options(dir = '.'):
global options, options_mtime
options = {
"show_threads": str(os.getenv("NOPSCADLIB_SHOW_THREADS")),
"vitamin_fa": str(os.getenv("NOPSCADLIB_VITAMIN_FA")),
"vitamin_fs": str(os.getenv("NOPSCADLIB_VITAMIN_FS"))
"vitamin_fa" : str(os.getenv("NOPSCADLIB_VITAMIN_FA")),
"vitamin_fs" : str(os.getenv("NOPSCADLIB_VITAMIN_FS")),
"manifold" : str(os.getenv("NOPSCADLIB_MANIFOLD"))
}
options_fname = dir + '/options.json'
try: