Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
python script to run InverseCSG on an example part from OpenLSTO based on the run_tests script that ships with InverseCSG
import os
import sys
# Usage: python3 <build_dir> <test_name>
# Example:
# python3 ../build openlsto
if len(sys.argv) < 3:
print('Error: please specify the test case name.')
build_dir = sys.argv[1]
test_name = sys.argv[2]
if test_name == 'openlsto':
os.system('python3 ../inverse_csg/ --builddir %s --outdir ../openlsto --mesh ../openlsto/ --eps 0.1 --surfacedensity 100 --volumedensity 10' % build_dir)
print('Unknown test case: %s' % test_name)

This comment has been minimized.

Copy link
Owner Author

commented Jan 24, 2019

for a post on combining OpenLSTO and InverseCSG for topology optimization interpretation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.