mirror of https://github.com/CGAL/cgal
Simple CurveKernel_2 models satisfying CKvA_2 requirenments
This commit is contained in:
parent
7f258ba048
commit
957d369189
|
|
@ -1617,6 +1617,9 @@ Curved_kernel_via_analysis_2/include/CGAL/Curved_kernel_via_analysis_2/Make_x_mo
|
|||
Curved_kernel_via_analysis_2/include/CGAL/Curved_kernel_via_analysis_2/Point_2.h -text
|
||||
Curved_kernel_via_analysis_2/include/CGAL/Curved_kernel_via_analysis_2/Sweep_curves_adaptor.h -text
|
||||
Curved_kernel_via_analysis_2/package_info/Curved_kernel_via_analysis_2/maintainer -text
|
||||
Curved_kernel_via_analysis_2/test/Curved_kernel_via_analysis_2/include/simple_models.h -text
|
||||
Curved_kernel_via_analysis_2/test/Curved_kernel_via_analysis_2/makefile -text
|
||||
Curved_kernel_via_analysis_2/test/Curved_kernel_via_analysis_2/simple_models.C -text
|
||||
Developers_manual/doc_tex/Developers_manual/fig/Cartesian_ipoint.gif -text svneol=unset#image/gif
|
||||
Developers_manual/doc_tex/Developers_manual/fig/Cartesian_orientation.gif -text svneol=unset#image/gif
|
||||
Developers_manual/doc_tex/Developers_manual/fig/Object.eps -text svneol=unset#application/postscript
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,68 @@
|
|||
# Created by the script cgal_create_makefile
|
||||
# This is the makefile for compiling a CGAL application.
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# include platform specific settings
|
||||
#---------------------------------------------------------------------#
|
||||
# Choose the right include file from the <cgalroot>/make directory.
|
||||
|
||||
# CGAL_MAKEFILE = ENTER_YOUR_INCLUDE_MAKEFILE_HERE
|
||||
include $(CGAL_MAKEFILE)
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# compiler flags
|
||||
#---------------------------------------------------------------------#
|
||||
CGAL_CXXFLAGS = -ftemplate-depth-100 -Wall -frounding-math -ffriend-injection -ffriend-injection -I/KM/home-0/emeliyan/work/CGAL-3.4-I-69/include/CGAL/config/i686_Linux-2.6_g++-4.1.2 -I/KM/home-0/emeliyan/work/CGAL-3.4-I-69/include -I/KM/home-0/emeliyan/gcc/include/c++/4.1.2 -pthread -I/KM/home-0/emeliyan/gcc/include/c++/4.1.2 -pthread -It -I/usr/X11R6/include -I/KM/home-0/emeliyan/thirdparty_libs/gmp/include -I/KM/home-0/emeliyan/thirdparty_libs/gmp/include -I/KM/home-0/emeliyan/thirdparty_libs/mpfr/include -I/LEDA/LEDA-5.x/LEDA-5.2-std/linux/g++-4.1/incl -I/KM/projects/ecg/software/linux/g++-4.1/qt-x11-free-3.3.6/include
|
||||
|
||||
CGAL_LDFLAGS = -L/KM/home-0/emeliyan/work/CGAL-3.4-I-69/lib/i686_Linux-2.6_g++-4.1.2 -L/usr/X11R6/lib -L/KM/home-0/emeliyan/thirdparty_libs/gmp/lib -L/KM/home-0/emeliyan/thirdparty_libs/gmp/lib -L/KM/home-0/emeliyan/thirdparty_libs/mpfr/lib -L/LEDA/LEDA-5.x/LEDA-5.2-std/linux/g++-4.1 -L/KM/projects/ecg/software/linux/g++-4.1/qt-x11-free-3.3.6/lib -Wl,-R/KM/home-0/emeliyan/work/CGAL-3.4-I-69/lib/i686_Linux-2.6_g++-4.1.2:/usr/X11R6/lib:/KM/home-0/emeliyan/thirdparty_libs/gmp/lib:/KM/home-0/emeliyan/thirdparty_libs/gmp/lib:/KM/home-0/emeliyan/thirdparty_libs/mpfr/lib:/LEDA/LEDA-5.x/LEDA-5.2-std/linux/g++-4.1:/KM/projects/ecg/software/linux/g++-4.1/qt-x11-free-3.3.6/lib -L/KM/home-0/emeliyan/gcc/lib -lpthread -lCGAL -lCGALcore++ -lCGALQt -lCGALimageIO -lCGALPDB -lqt-mt -lGL -lGLU -lP -lG -lL -lz -lmpfr -lgmpxx -lgmp -lX11 -lm
|
||||
|
||||
CXXFLAGS = \
|
||||
-Iinclude \
|
||||
-I../../include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Arrangement_on_surface_2/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Installation/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/STL_Extension/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Modular_arithmetic/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Polynomial/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Algebraic_foundations/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Number_types/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Number_types/test/Number_types/include \
|
||||
-I/KM/home-0/emeliyan/tmp/CGAL_packages/Curved_kernel_via_analysis_2/include \
|
||||
-I/KM/home-0/emeliyan/tmp/EXACUS/NumeriX/include \
|
||||
-I/KM/home-0/emeliyan/tmp/EXACUS/Support/include \
|
||||
$(CGAL_CXXFLAGS) \
|
||||
$(LONG_NAME_PROBLEM_CXXFLAGS)
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# linker flags
|
||||
#---------------------------------------------------------------------#
|
||||
|
||||
LIBPATH = \
|
||||
$(CGAL_LIBPATH)
|
||||
|
||||
LDFLAGS = \
|
||||
$(LONG_NAME_PROBLEM_LDFLAGS) \
|
||||
$(CGAL_LDFLAGS)
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# target entries
|
||||
#---------------------------------------------------------------------#
|
||||
|
||||
all: simple_models$(EXE_EXT)
|
||||
|
||||
simple_models$(EXE_EXT): simple_models$(OBJ_EXT)
|
||||
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)simple_models simple_models$(OBJ_EXT) $(LDFLAGS)
|
||||
|
||||
clean: simple_models.clean
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# suffix rules
|
||||
#---------------------------------------------------------------------#
|
||||
|
||||
.C$(OBJ_EXT):
|
||||
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
||||
|
||||
|
||||
.cpp$(OBJ_EXT):
|
||||
$(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $<
|
||||
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
// TODO: Add licence
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL:$
|
||||
// $Id: $
|
||||
//
|
||||
//
|
||||
// Author(s) : Pavel Emeliyanenko <asm@mpi-sb.mpg.de>
|
||||
//
|
||||
// ============================================================================
|
||||
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
|
||||
using std::output_iterator_tag; // compiler complains
|
||||
|
||||
// not compiled with preconditions (NumeriX library conflicts)
|
||||
#define CGAL_NO_PRECONDITIONS
|
||||
|
||||
#include <CGAL/basic.h>
|
||||
|
||||
#ifdef CGAL_USE_LEDA
|
||||
#undef CGAL_USE_LEDA // doesn't compile with leda ?
|
||||
#endif
|
||||
|
||||
// temporarily required while CKvA depends on NumeriX library
|
||||
#include <NiX/resultant.h>
|
||||
|
||||
#include <simple_models.h>
|
||||
#include <CGAL/Arrangement_2.h>
|
||||
#include <CGAL/Curved_kernel_via_analysis_2.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
typedef CGAL::Simple_algebraic_kernel_2 Kernel_2;
|
||||
|
||||
// GPA arrangement traits
|
||||
typedef CGAL::Curved_kernel_via_analysis_2<Kernel_2> Traits;
|
||||
|
||||
typedef Traits::Point_2 Point_2;
|
||||
typedef Traits::X_monotone_curve_2 Arc_2;
|
||||
Kernel_2 kernel_2;
|
||||
|
||||
std::vector<Kernel_2::Curve_2> curves(2);
|
||||
|
||||
typedef CGAL::Arrangement_2<Traits> Arrangement;
|
||||
Arrangement arrangement;
|
||||
|
||||
CGAL::insert(arrangement, curves.begin(), curves.end());
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue