Skip to content

Commit

Permalink
Move demo in the Polygon_repair directory
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Nov 6, 2024
1 parent 2385e58 commit c8aa6e4
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ MainWindow::processInput(CGAL::Object o)
}
}
if((! mpwhA.is_empty()) && (! mpwhB.is_empty())){
Boolean boolean;
boolean.insert(mpwhA, mpwhB);
mpwhC = boolean([](bool a, bool b){ return a && b;});
mpwhC = CGAL::Polygon_repair::join(mpwhA, mpwhB);
}
Q_EMIT( changed());
}
Expand Down
35 changes: 35 additions & 0 deletions GraphicsView/demo/Polygon_repair/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Created by the script cgal_create_cmake_script
# This is the CMake script for compiling a CGAL application.

cmake_minimum_required(VERSION 3.12...3.29)
project(Triangulation_2_Demo)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR TRUE)

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)
find_package(Qt6 QUIET COMPONENTS Widgets)

if(NOT CGAL_Qt6_FOUND OR NOT Qt6_FOUND)
message("NOTICE: This demo requires CGAL and Qt6, and will not be compiled.")
return()
endif()

add_definitions(-DQT_NO_KEYWORDS)
set(CMAKE_INCLUDE_CURRENT_DIR ON)


qt_add_executable(
Boolean_2 Boolean_2.cpp
Boolean_2.ui Boolean_2.qrc)
target_link_libraries(Boolean_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt6
Qt6::Widgets)

add_to_cached_list(CGAL_EXECUTABLE_TARGETS Boolean_2)

include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)

cgal_add_compilation_test(Boolean_2)

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8aa6e4

Please sign in to comment.