mirror of https://github.com/CGAL/cgal
72 lines
2.6 KiB
C++
72 lines
2.6 KiB
C++
// 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 CGAL_TC_CONFIG_H
|
|
#define CGAL_TC_CONFIG_H
|
|
|
|
#include <CGAL/config.h>
|
|
|
|
// Without TBB_USE_THREADING_TOOL Intel Inspector XE will report false
|
|
// positives in Intel TBB
|
|
// (http://software.intel.com/en-us/articles/compiler-settings-for-threading-error-analysis-in-intel-inspector-xe/)
|
|
#ifdef _DEBUG
|
|
# define TBB_USE_THREADING_TOOL
|
|
#endif
|
|
|
|
|
|
//========================= Debugging & profiling =============================
|
|
#define CGAL_TC_PROFILING
|
|
#define CGAL_TC_VERBOSE
|
|
//#define CGAL_TC_SHOW_DETAILED_STATS_FOR_INCONSISTENCIES
|
|
//#define USE_ANOTHER_POINT_SET_FOR_TANGENT_SPACE_ESTIM
|
|
|
|
// Solving inconsistencies: only perturb the vertex, the simplex or more?
|
|
//#define CGAL_TC_PERTURB_THE_CENTER_VERTEX_ONLY
|
|
//#define CGAL_TC_PERTURB_THE_SIMPLEX_ONLY
|
|
//#define CGAL_TC_PERTURB_THE_1_STAR
|
|
// Otherwise, perturb one random point of the simplex
|
|
|
|
|
|
/*
|
|
// Otherwise, perturb the k + 1 + CGAL_TC_NUMBER_OF_ADDITIONNAL_PERTURBED_POINTS
|
|
// closest points
|
|
#define CGAL_TC_NUMBER_OF_PERTURBED_POINTS(intr_dim) (1)
|
|
//#define CGAL_TC_NUMBER_OF_PERTURBED_POINTS(intr_dim) (intr_dim + 2)
|
|
*/
|
|
|
|
//========================= Strategy ==========================================
|
|
//#define CGAL_TC_USE_NANOFLANN
|
|
//#define CGAL_TC_USE_SLOW_BUT_ACCURATE_SPARSIFIER
|
|
#define CGAL_TC_GLOBAL_REFRESH
|
|
//#define CGAL_TC_ON_DEMAND_REFRESH // CJTODO: not implemented yet
|
|
// The idea is to perform a global refresh + some local refreshes, just
|
|
// for local tri where there are some inconsistencies
|
|
// But be careful: refreshing the TC may invalidate cells, so the
|
|
// incident cells have to be recomputed again
|
|
#define CGAL_TC_PERTURB_POSITION
|
|
# define CGAL_TC_PERTURB_POSITION_TANGENTIAL // default
|
|
//# define CGAL_TC_PERTURB_POSITION_GLOBAL
|
|
//#define CGAL_TC_PERTURB_WEIGHT
|
|
|
|
//========================= Parameters ========================================
|
|
const std::size_t NUM_POINTS_FOR_PCA = 20;
|
|
|
|
#endif // CGAL_TC_CONFIG_H
|