mirror of https://github.com/CGAL/cgal
75 lines
3.1 KiB
C++
75 lines
3.1 KiB
C++
// ============================================================================
|
|
//
|
|
// Copyright (c) 1998 The CGAL Consortium
|
|
//
|
|
// This software and related documentation is part of an INTERNAL release
|
|
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
|
// intended for general use.
|
|
//
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// release :
|
|
// release_date :
|
|
//
|
|
// file : test/Triangulation/test_constrained_triangulation.C
|
|
// source : $URL$
|
|
// revision : $Id$
|
|
// revision_date : $Date$
|
|
// author(s) : Francois Rebufat (Francois.Rebufat@sophia.inria.fr)
|
|
//
|
|
// coordinator : INRIA Sophia-Antipolis
|
|
// ============================================================================
|
|
|
|
#include <CGAL/internal/disable_deprecation_warnings_and_errors.h>
|
|
|
|
// Don't want to be warned about using CDT_2 (and not CDT_2+) with an exact number type
|
|
#define CGAL_NO_CDT_2_WARNING
|
|
|
|
#include <CGAL/_test_types.h>
|
|
|
|
#include <CGAL/Constrained_triangulation_2.h>
|
|
#include <CGAL/_test_cls_constrained_triangulation_2.h>
|
|
|
|
// Explicit instantiation of the whole class :
|
|
template class CGAL::Constrained_triangulation_2<TestK>;
|
|
|
|
int main()
|
|
{
|
|
std::cout << "Testing constrained_triangulation "<< std::endl;
|
|
std::cout << " with No_constraint_intersection_tag : " << std::endl;
|
|
typedef CGAL::No_constraint_intersection_tag CItag;
|
|
typedef CGAL::Constrained_triangulation_2<TestK, CGAL::Default, CItag> Ctwoc;
|
|
_test_cls_constrained_triangulation(Ctwoc());
|
|
|
|
std::cout << "Testing constrained_triangulation "<< std::endl;
|
|
std::cout << " with No_constraint_intersection_requiring_constructions_tag (default): " << std::endl;
|
|
|
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
|
typedef CGAL::No_intersection_tag CDItag;
|
|
typedef CGAL::Constrained_triangulation_2<TestK, CGAL::Default, CDItag> Ct;
|
|
#else
|
|
typedef CGAL::Constrained_triangulation_2<TestK> Ct;
|
|
#endif
|
|
_test_cls_constrained_triangulation(Ct());
|
|
|
|
std::cout << "Testing constrained_triangulation "<< std::endl;
|
|
std::cout << " with Exact_predicates_tag : " << std::endl;
|
|
typedef CGAL::Triangulation_vertex_base_2<TestK> Vb;
|
|
typedef CGAL::Constrained_triangulation_face_base_2<TestK> Fb;
|
|
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> TDS;
|
|
typedef CGAL::Exact_predicates_tag Itag;
|
|
typedef CGAL::Constrained_triangulation_2<TestK,TDS,Itag> Ctwi;
|
|
_test_cls_constrained_triangulation(Ctwi());
|
|
|
|
std::cout << "Testing constrained_triangulation "<< std::endl;
|
|
std::cout << " with Exact_intersections_tag : " << std::endl;
|
|
typedef CGAL::Triangulation_vertex_base_2<EK> Vbb;
|
|
typedef CGAL::Constrained_triangulation_face_base_2<EK> Fbb;
|
|
typedef CGAL::Triangulation_data_structure_2<Vbb,Fbb> TDSS;
|
|
typedef CGAL::Exact_intersections_tag EItag;
|
|
typedef CGAL::Constrained_triangulation_2<EK,TDSS,EItag> Ctwei;
|
|
_test_cls_constrained_triangulation(Ctwei());
|
|
|
|
return 0;
|
|
}
|