fix(cli): reuse body diagnostics instead of re-running diagnose
This commit is contained in:
@@ -52,6 +52,10 @@ if(TARGET vde_brep)
|
||||
add_executable(vde_brep_check vde_brep_check.cpp)
|
||||
target_link_libraries(vde_brep_check PRIVATE vde)
|
||||
target_compile_features(vde_brep_check PRIVATE cxx_std_17)
|
||||
if(MSVC)
|
||||
target_link_options(vde_brep_check PRIVATE
|
||||
"/MAP:${CMAKE_BINARY_DIR}/vde_brep_check.map")
|
||||
endif()
|
||||
if(VDE_INSTALL_SDK)
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS vde_brep_check RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
@@ -723,7 +723,10 @@ int run_check(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
print_validation("raw", v0);
|
||||
print_diag(diagnose_body(body));
|
||||
if (bi < imported.diagnostic.body_diagnostics.size())
|
||||
print_diag(imported.diagnostic.body_diagnostics[bi]);
|
||||
else
|
||||
print_diag(diagnose_body(body));
|
||||
bool deep_tolerance_bad = false;
|
||||
if (deep) {
|
||||
const auto tol = tolerance_analysis(body);
|
||||
|
||||
Reference in New Issue
Block a user