Skip to content

Commit 77fc312

Browse files
committed
Removed copy header
1 parent 2262cd2 commit 77fc312

20 files changed

+11
-25
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ if(TIGHT_INCLUSION_TOPLEVEL_PROJECT)
5151
endif()
5252

5353
### Configuration
54-
set(TIGHT_INCLUSION_SOURCE_DIR "${PROJECT_SOURCE_DIR}/src")
55-
5654
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/tight_inclusion/")
5755
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/recipes/")
5856
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/find/")
@@ -68,10 +66,10 @@ include(tight_inclusion_utils)
6866
add_library(tight_inclusion)
6967
add_library(tight_inclusion::tight_inclusion ALIAS tight_inclusion)
7068

71-
add_subdirectory(tight_inclusion)
69+
add_subdirectory(src/tight_inclusion)
7270

7371
# Public include directory for Tight Inclusion
74-
target_include_directories(tight_inclusion PUBLIC ${PROJECT_BINARY_DIR}/include)
72+
target_include_directories(tight_inclusion PUBLIC src)
7573

7674
################################################################################
7775
# Optional Definitions

cmake/tight_inclusion/tight_inclusion_utils.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copy header files into the build directory
2-
function(tight_inclusion_copy_headers)
3-
foreach(filepath IN ITEMS ${ARGN})
4-
file(RELATIVE_PATH filename "${TIGHT_INCLUSION_SOURCE_DIR}" "${filepath}")
5-
if(${filename} MATCHES ".*\.(hpp|h|ipp|tpp)$")
6-
configure_file(${filepath} ${PROJECT_BINARY_DIR}/include/tight_inclusion/${filename})
7-
endif()
8-
endforeach()
9-
endfunction()
10-
111
function(tight_inclusion_prepend_current_path SOURCE_FILES)
122
# Use recursive substitution to expand SOURCE_FILES
133
unset(MODIFIED)

tight_inclusion/CMakeLists.txt renamed to src/tight_inclusion/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ set(SOURCES
1212
)
1313

1414
tight_inclusion_prepend_current_path(SOURCES)
15-
tight_inclusion_copy_headers(${SOURCES})
1615
tight_inclusion_set_source_group(${SOURCES})
1716
target_sources(tight_inclusion PRIVATE ${SOURCES})
1817

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tight_inclusion/interval_root_finder.cpp renamed to src/tight_inclusion/interval_root_finder.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,7 @@ namespace ticcd {
376376
// current intervals
377377
Interval3 current;
378378
int refine = 0;
379-
Scalar impact_ratio;
380-
381-
impact_ratio = 1;
379+
Scalar impact_ratio = 1;
382380

383381
toi = std::numeric_limits<Scalar>::infinity(); //set toi as infinate
384382
// temp_toi is to catch the toi of each level
@@ -429,10 +427,7 @@ namespace ticcd {
429427
{
430428
TIGHT_INCLUSION_SCOPED_TIMER(time_predicates);
431429
// #ifdef TIGHT_INCLUSION_USE_GMP // this is defined in the begining of this file
432-
// Array3 ms_3d;
433-
// ms_3d[0] = ms;
434-
// ms_3d[1] = ms;
435-
// ms_3d[2] = ms;
430+
// Array3 ms_3d = Array3::Constant(ms);
436431
// zero_in = origin_in_function_bounding_box_rational_return_tolerance<
437432
// check_vf>(
438433
// current, a0s, a1s, b0s, b1s, a0e, a1e, b0e, b1e, ms_3d, box_in,
@@ -568,9 +563,14 @@ namespace ticcd {
568563
Scalar &toi,
569564
Scalar &output_tolerance)
570565
{
571-
//build interval set [0,1]x[0,1]x[0,1]
566+
// build interval set [0,t_max]x[0,1]x[0,1]
572567
const Interval zero_to_one = Interval(NumCCD(0, 0), NumCCD(1, 0));
573-
Interval3 iset = {{zero_to_one, zero_to_one, zero_to_one}};
568+
Interval3 iset = {{
569+
// Interval(NumCCD(0, 0), NumCCD(max_time)),
570+
zero_to_one,
571+
zero_to_one,
572+
zero_to_one,
573+
}};
574574

575575
return interval_root_finder_BFS<check_vf>(
576576
a0s, a1s, b0s, b1s, a0e, a1e, b0e, b1e, iset, tol,

0 commit comments

Comments
 (0)