diff --git a/vis/presets/default.yaml b/vis/presets/default.yaml index b82040c..2cc082c 100644 --- a/vis/presets/default.yaml +++ b/vis/presets/default.yaml @@ -7,7 +7,3 @@ groups: color: [0.3, 0.3, 0.3] exclude: - [0, 1, 2] - wires: - - root: [0.50, 0.05, 0.05, 0.05, 0.01] - color: [0.9, 0.9, 0.9] - curve: true diff --git a/vis/src/main.cpp b/vis/src/main.cpp index cd18aab..b86cc3f 100644 --- a/vis/src/main.cpp +++ b/vis/src/main.cpp @@ -180,7 +180,7 @@ struct Wire { } }; -void run(GLFWwindow *window) { +void run(const std::string &config_file, GLFWwindow *window) { glEnable(GL_DEPTH_TEST); glEnable(GL_BLEND); @@ -199,7 +199,7 @@ void run(GLFWwindow *window) { .stage(sh.slice) .stage(sh.solid); - auto scene = YAML::LoadFile("presets/default.yaml"); + auto scene = YAML::LoadFile(config_file); auto slices = std::vector>(); auto wires = std::vector(); @@ -326,7 +326,10 @@ int main(int argc, char *argv[]) { std::cout << utilInfo(); - run(window); + std::string config_file = "presets/default.yaml"; + if (argc > 1) config_file = std::string(argv[1]); + + run(config_file, window); glfwTerminate(); return EXIT_SUCCESS;