fix(cli): reuse body diagnostics instead of re-running diagnose

This commit is contained in:
hm
2026-11-04 20:24:04 +08:00
parent b00fe16c5b
commit d032cbcad1
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -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})
+4 -1
View File
@@ -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);