Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ease drawing of SDG duals #7976

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Apollonius_graph_2/include/CGAL/Parabola_segment_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Qt {
}

template < class Gt >
class Parabola_segment_2 : public Parabola_2< Gt >
struct Parabola_segment_2 : public Parabola_2< Gt >
{
typedef CGAL::Parabola_2<Gt> Base;
typedef typename Base::Site_2 Site_2;
Expand All @@ -39,10 +39,10 @@ class Parabola_segment_2 : public Parabola_2< Gt >
using Base::t;
using Base::f;

protected:

Point_2 p1, p2;

public:

Parabola_segment_2() : Parabola_2< Gt >() {}

template<class ApolloniusSite>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
cmake_minimum_required(VERSION 3.1...3.23)
project(Segment_Delaunay_graph_2_Examples)

find_package(CGAL REQUIRED)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

# create a target per cppfile
file(
GLOB cppfiles
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})
create_single_source_cgal_program("${cppfile}")
endforeach()
create_single_source_cgal_program("sdg-count-sites.cpp")
create_single_source_cgal_program("sdg-fast-sp.cpp")
create_single_source_cgal_program("sdg-fast-sp-polygon.cpp")
create_single_source_cgal_program("sdg-filtered-traits.cpp")
create_single_source_cgal_program("sdg-info-set.cpp")
create_single_source_cgal_program("sdg-red-blue-info.cpp")
create_single_source_cgal_program("sdg-voronoi-edges.cpp")

find_package(LEDA QUIET)
if(CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("sdg-advanced-draw.cpp")
else()
message("NOTICE: The program sdg-advanced-draw requires CGAL_Core or LEDA, and will not be compiled.")
endif()
Loading