Move demo in the Polygon_repair directory

This commit is contained in:
Andreas Fabri 2024-11-06 17:03:30 +00:00
parent 2385e5886d
commit c8aa6e447d
19 changed files with 93 additions and 3 deletions

View File

@ -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());
}

View File

@ -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)

View File

@ -0,0 +1,57 @@
%PDF-1.3
3 0 obj <<
/Length 385 /Filter /FlateDecode >>
stream
xÚ}S¹N1 íç+RSDNœcÒÒ ÑŸ° BPlÅïãøÈ$ZQ<5A>7~‡ídÁ½ºà¾Ž»_Üïúìâ™}kÍý OS¤ÿ<C2A4>põ‰ê„ÇùFÜàC<C3A0>S-LÎ<4C>m8Ôà.mšœÓp¶\«â¢ÅÅùÓ=?o×HÐ|¢è]HÚS¬Kè&„€«Q0TŠÀQ-v`æ*ÊMÚ2m>ggF<67>­¹Zm¶MÎû@¨A û@¦0qJݘÇ2¢XL²g­â¦˜¹†¢h†6,ꪑ+Õ²iËä¼Tø)¤ÐDZ³4DûÓØ¿f;QíMšJ]TŠ˜'g¶©°™Ÿ:O“¤¢]¨jô7µ~wï¶Àw1ž¸ïC‰ÿÐøqËs]iSáÛJã­„‡<E2809E>+ÅHÁý½¿P}M}lºCàk°/õô ¿L”Ú<<3C>QDÚä<>i¡úR/=~r»ô†5A~Zü%Gß
 ßg™ßÖ¡é·úU}ШÞ˜ð
endstream endobj
4 0 obj <<
/Type /Page
/Contents 3 0 R
/Resources <<
/ProcSet [ /PDF ]
>>
/MediaBox [ 0 0 595 842]
/CropBox [204.765 238.4 261.6 291.541]
/ArtBox [204.765 238.4 261.6 291.541]
/Parent 2 0 R
>> endobj
1 0 obj <<
/Type /Ipe
/Length 322 /Filter /FlateDecode >>
stream
xÚµ”Ínƒ0 Çï<…• &|ˆL¥§]ö)„6j Q ìãég@]é†vØZ倉ÿþÙŽ•lµS0(ßiÛ,Cä9ƒÒ+Ù[_°rf!ójÐêȹ ¶º­í¬QUÁžŸ8bŽŠHÄs<06>­t­×}û½}+Xé­#ƒmˆæäAÁÁëªÓª`Q6¦0ò]yheC;Ò¸£œ¤S “«»lƒ,{=ܨéO³êKÔõÞžH´7²<1pây©Ÿ4B<>à(ݘœ¬©ŠÖúFµ6æ¦èˆÎ¦÷²ý5Õ*ó1žáàq:ÓøðT8ú3øàíÙMcí<63>ßüº ]A,L°ÝŒ¸;P¯3ÿuÁ¹c­·Ôy÷ìþ'q³:.¯ª5VÈb!­Íc SL©ó4Ìé_-È㽿ôÀìOR P©
endstream endobj
2 0 obj <<
/Type /Pages
/Count 1
/Kids [ 4 0 R ]
>> endobj
5 0 obj <<
/Type /Catalog
/Pages 2 0 R
>> endobj
6 0 obj <<
/Creator (Ipe 6.0 preview 28)
/Producer (Ipe 6.0 preview 28)
/CreationDate (D:20080609193922)
/ModDate (D:20080609193922)
>> endobj
xref
0 7
0000000000 00000 f
0000000671 00000 n
0000001076 00000 n
0000000009 00000 n
0000000466 00000 n
0000001135 00000 n
0000001184 00000 n
trailer
<<
/Size 7
/Root 5 0 R
/Info 6 0 R
>>
startxref
1327
%%EOF

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB