-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Replies: 1 comment · 8 replies
-
Did you install (and enable) the Eigen library? The error comes from fallback code for when Eigen is missing. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Check out the parts about Eigen in https://github.com/CGAL/cgal/blob/master/Solver_interface/examples/Solver_interface/CMakeLists.txt for instance. |
Beta Was this translation helpful? Give feedback.
All reactions
-
@mglisse Thanks! ==== ORIGINAL ISSUE==== Here is a short overview of issue I am facing:
This is strange, because the intersection point is already detected, even the type is a 2D point ( (The empty intersection result happens for the face with pink line around it, when intersecting the green dotted line with the light blue fitted edge.)
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Then you haven't changed it enough (note that eigen appears in 3 types of lines: find_package, include and target_link_libraries), because that should define a macro CGAL_EIGEN3_ENABLED and prevent the file where you got your original error from being included at all. It is hard to help without seeing the CMakeLists.txt and the actual compiler invocation (shown with |
Beta Was this translation helpful? Give feedback.
All reactions
-
@mglisse Thanks! cmake_minimum_required(VERSION 3.0)
project(PairWiseIntersection)
find_package(CGAL REQUIRED)
find_package(Eigen3 REQUIRED)
add_compile_definitions("DATA_DIR=\"${CMAKE_CURRENT_LIST_DIR}/data\"")
# Use Eigen
find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
include(CGAL_Eigen3_support)
if(TARGET CGAL::Eigen3_support)
Message ("Eigen3 found")
add_library(MergingStationLib STATIC
../06_MergingStation/definitions.cpp
)
create_single_source_cgal_program("main.cpp")
target_link_libraries(main PUBLIC CGAL::Eigen3_support)
target_include_directories(MergingStationLib PUBLIC ../06_MergingStation)
target_link_libraries(MergingStationLib ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
add_executable(PairWiseIntersection main.cpp)
target_link_libraries(PairWiseIntersection MergingStationLib CGAL::CGAL)
else()
message(STATUS "NOTICE: Eigen3 was not found.")
endif() and here is the compiler invocation:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
You only added |
Beta Was this translation helpful? Give feedback.
-
Hello CGAL community,
I'm encountering an issue in my project that involves CGAL. I'm facing a problem with the
cos
function andCGAL::Lazy_exact_nt
.I've put the error after this message.
It seems to be related to an issue with the
cos
function expecting a different argument type than what's being passed (CGAL::Lazy_exact_nt
) . I suspect there may be an issue with implicit or explicit type conversions or missing transformations.My code was working just before I change the kernel from EPICK to EPECK. I did that change for exact construction of the line intersections I calculate in my code.
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions