mirror of https://github.com/CGAL/cgal
Merge branch 'Tangential_complex-cjamin-old' into Tangential_complex-cjamin
This commit is contained in:
commit
47d4ca1937
|
|
@ -0,0 +1,64 @@
|
|||
// Copyright (c) 2014 INRIA Sophia-Antipolis (France)
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org).
|
||||
// You can redistribute it and/or modify it under the terms of the GNU
|
||||
// General Public License as published by the Free Software Foundation,
|
||||
// either version 3 of the License, or (at your option) any later version.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// 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) : Clement Jamin
|
||||
|
||||
|
||||
#ifndef TANGENTIAL_COMPLEX_H
|
||||
#define TANGENTIAL_COMPLEX_H
|
||||
|
||||
#include <CGAL/basic.h>
|
||||
|
||||
#include <CGAL/Epick_d.h>
|
||||
#include <CGAL/Regular_triangulation_euclidean_traits.h>
|
||||
#include <CGAL/Regular_triangulation.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
/// The class Tangential_complex represents a tangential complex
|
||||
template <
|
||||
typename Kernel,
|
||||
int Intrinsic_dimension,
|
||||
typename Tr = Regular_triangulation<Regular_triangulation_euclidean_traits<
|
||||
CGAL::Epick_d<Dimension_tag<Intrinsic_dimension> > > >
|
||||
>
|
||||
class Tangential_complex
|
||||
{
|
||||
typedef typename Kernel::Point_d Point;
|
||||
typedef typename Kernel::Vector_d Vector;
|
||||
typedef typename std::vector<Vector> Tangent_space_base;
|
||||
|
||||
public:
|
||||
/// Constructor
|
||||
Tangential_complex() {}
|
||||
|
||||
/// Destructor
|
||||
~Tangential_complex() {}
|
||||
|
||||
private:
|
||||
std::vector<Point> m_points;
|
||||
std::vector<Tangent_space_base> m_tangent_spaces;
|
||||
std::vector<Tr> m_triangulations;
|
||||
|
||||
}; // /class Tangential_complex
|
||||
|
||||
} // end namespace CGAL
|
||||
|
||||
#endif // TANGENTIAL_COMPLEX_H
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
INRIA Sophia-Antipolis (France)
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Tangential complex
|
||||
|
||||
This CGAL component provides an implementation of the tangential complex.
|
||||
|
|
@ -0,0 +1 @@
|
|||
GPL (v3 or later)
|
||||
|
|
@ -0,0 +1 @@
|
|||
Clément Jamin <clement.jamin.pro@gmail.com>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
project( Tangential_complex_test )
|
||||
|
||||
cmake_minimum_required(VERSION 2.6.2)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
|
||||
cmake_policy(VERSION 2.8.4)
|
||||
else()
|
||||
cmake_policy(VERSION 2.6)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
include( ${CGAL_USE_FILE} )
|
||||
include( CGAL_CreateSingleSourceCGALProgram )
|
||||
|
||||
find_package(Eigen3 3.1.0)
|
||||
if (EIGEN3_FOUND)
|
||||
include( ${EIGEN3_USE_FILE} )
|
||||
include_directories (BEFORE "../../include")
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
create_single_source_cgal_program( "test_tangential_complex.cpp" )
|
||||
|
||||
else()
|
||||
message(STATUS "NOTICE: Some of the executables in this directory need Eigen 3.1 (or greater) and will not be compiled.")
|
||||
endif()
|
||||
|
||||
else()
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
endif()
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#include <CGAL/Epick_d.h>
|
||||
#include <CGAL/Tangential_complex.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
typedef CGAL::Epick_d<CGAL::Dimension_tag<3> > Kernel;
|
||||
const int INTRINSIC_DIMENSION = 2;
|
||||
|
||||
CGAL::Tangential_complex<Kernel, INTRINSIC_DIMENSION> tc;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue