Commit Graph

133 Commits

Author SHA1 Message Date
Sébastien Loriot 7d20531b1d Convert remaining CRLF files to LF 2012-12-04 17:09:28 +01:00
Sébastien Loriot 3c8f53b7bf fix reference manual 2012-10-22 15:48:42 +00:00
Philipp Möller 5bed1b15c5 Add basic Surface_mesh_parameterization, grouping and some moves to
internal are still missing
2012-09-14 11:15:18 +00:00
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
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()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
Sébastien Loriot e702f20986 Eigen 3-1 is out.
Require Eigen 3.1.0 in CMake scripts.
2012-06-27 12:38:32 +00:00
Sébastien Loriot cee248ca54 merge from next 2012-01-13 18:48:35 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Sébastien Loriot 5de506608d *explicit overloads for Eigen_vector::operator=
*include Taucs header if detected in param. test
2011-12-27 10:08:39 +00:00
Sébastien Loriot 4a96d66d58 *add missing add_coef to Eigen_sparse_matrix
*update doc example of Eigen_solver_traits
*update CMakeLists.txt and examples/test to use Eigen instead of Taucs (when available)
2011-12-22 19:20:19 +00:00
Laurent Rineau 3c02e07b23 Try to fix my last revision about cmake_policy, with CMake-2.6.x
CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
x.y.z is greater than the current CMake version.
2011-04-28 17:45:22 +00:00
Laurent Rineau c97205f085 Global handling of CMake policies (second part)
We declare 
  cmake_minimum_required(VERSION 2.6.2)
but we also use
  cmake_policy(VERSION 2.8.4)
to declare that our CMake scripts are OK with all the defaults of CMake policies
as of CMake-2.8.4. That shuts down the warnings of CMake-2.8.4.

That way, we no longer need any declaration of specific policies.

Those two lines must be present and maintained in all our CMakeLists.txt
files (the one for the libraries, and also the one for examples and demos,
and maybe tests).
2011-04-28 10:55:56 +00:00
Laurent Rineau 0631943153 Uniform capitalization in our CMake script: use lowercase for commands 2011-04-28 10:36:18 +00:00
Laurent Rineau ca5c92e034 Global maintenance of CMakeLists.txt: CMake minimal version is -2.6.2
The documentation of CGAL says that the minimal version of CMake must be
CMake-2.6.2.
  - change cmake_minimum_required to VERSION 2.6.2
  - no longer any need for the policy CMP0003 (was for 2.4.x)
  - no longer any need for CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS (was for 2.4)
2011-04-27 17:58:27 +00:00
Laurent Saboret fe8353441a Port to Windows 64 2009-09-02 12:10:05 +00:00
Laurent Saboret be09d80d95 * Bug fix: fixed compatibility of TAUCS/BLAS/LAPACK precompiled libraries with Visual C++ 9.0 2008:
CGAL 3.5 will include TAUCS/BLAS/LAPACK precompiled libraries for Visual C++ 8.0 and 9.0. 
Auto-link is modified accordingly.

* Also fixed compatibility of cgal_test_with_cmake.bat scripts with VC++ 9.0.
2009-08-26 16:23:28 +00:00
Laurent Saboret d879d0191a Fixed potential conflicts with third party libraries (Visual C++ only):
Removed _HAS_ITERATOR_DEBUGGING=0 setting to go back to default settings.
This setting could create conflicts with third party libraries like _SECURE_SCL=0 crashes boost program options.

Note that no conflict with _HAS_ITERATOR_DEBUGGING was reported. This is just a safety change.
2009-07-16 18:16:24 +00:00
Laurent Saboret 11cb5a223f Fixed bug in cgal_test_with_cmake and compiler warning on platform Cygwin/Visual C++/NMake. 2009-07-08 08:51:56 +00:00
Laurent Saboret 786f9d5768 Automatic documentation improvements by generate_reference_manual 1.3:
- Reduced left margin of free functions description.
- Fixed bug: fixed vertical alignment in methods/functions description.
- Fixed bug: does not remove anymore EOLs in methods/functions description.
- Fixed bug #7515: removed "[protected]", "[static]" and "[virtual]" comments.
2009-06-11 08:38:15 +00:00
Laurent Saboret bfc3fa82d6 Compare logs with Beyond Compare 2009-05-26 17:06:30 +00:00
Laurent Saboret 689118b8d1 Fixed misspelling: "an halfedge" -> "a halfedge" 2009-03-18 08:59:29 +00:00
Laurent Saboret 92a1e27edd Renamed test_all.sh/bat (quick and cross-platform version of cgal_test_with_cmake) as quick_test_suite.sh/bat 2009-03-12 12:25:06 +00:00
Laurent Saboret 22c5f2d586 Code cleaning 2009-03-10 15:36:10 +00:00
Laurent Saboret a0bb4e822d Better workaround of g++ 4.1 optimizer bug: -fno-strict-aliasing. Performance penalty is 5% vs 24% with -O 2008-12-08 15:38:27 +00:00
Laurent Saboret 201b369941 Workaround g++ 4.1 optimizer bug that creates an infinite loop in Surface_mesh_parameterization if using -O2 or -O3 option 2008-12-05 15:50:21 +00:00
Laurent Saboret 8df473faf8 Removed VC++ makefiles (replaced by CMake makefiles) 2008-11-17 10:55:16 +00:00
Laurent Saboret a46390251e Bug fix:
This directory works with and without TAUCS.
2008-11-12 17:25:39 +00:00
Laurent Rineau a4215bd4ea Fix conditional compilation of TAUCS features in
Surface_mesh_parametrization, after revisions 46743-46745.
2008-11-07 15:30:00 +00:00
Fernando Cacciola 547bffecd9 Put CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS in the right place for cmake 2.4 2008-11-06 13:03:41 +00:00
Fernando Cacciola 994028ec51 Prefixed CreateSingleSourceCGALProgram.cmake with CGAL_ 2008-11-04 13:09:48 +00:00
Fernando Cacciola 70fa9503fd Added CMP0003 policy 2008-11-04 12:30:29 +00:00
Fernando Cacciola 6495c9da12 Rename CGAL_SetupBLAS (et al) to CGAL_UseBlas (et al) - Part 2/2 2008-10-30 16:01:16 +00:00
Laurent Saboret 0bbfad9e5c Merge of Fernando's CMake files for BLAS/LAPACK/TAUCS with the original
FindBLAS.cmake and FindLAPACK.cmake in CMake 2.6.
The result is more or less equivalent to install_cgal's behavior.
TODO:
- use a C++ compiler instead of a Fortran one
- try to be compatible with CMake 2.4
- find CBLAS (http://www.netlib.org/cblas)?

Jet_fitting_3 and Surface_mesh_parameterization compile now with CMake
(tested on Linux/gcc and Windows/VC++ 2005).
2008-10-23 16:29:42 +00:00
Laurent Saboret f97e6accee Add back VC++ makefiles until switch to CMake is over 2008-10-23 12:32:01 +00:00
Laurent Rineau f10a590672 Mass-remove vcproj files. 2008-10-21 09:21:22 +00:00
Laurent Saboret a3c891df05 Windows specific: fixed crash with TAUCS on large linear systems:
- increased stack size
- added Win32_exception_handler protection to catch stack overflows
2008-10-13 08:33:33 +00:00
Laurent Saboret a1627b003f Removed unnecessary includes of CGAL/basic.h
Enforced CGAL_NDEBUG rule:
- code under include/CGAL/ and src/ must not use NDEBUG and assert(), but CGAL_NDEBUG and CGAL assertion macros.
- code under demo/, examples/ and test/ must use NDEBUG and assert().
2008-08-21 11:57:02 +00:00
Laurent Saboret 42f40a7fc2 Changed the way parameterization errors are reported. Now:
- there is a clear distinction between internal errors (aka bugs) and not supported input files (typically models which are not topological discs),
- internal errors trigger a test suite failure.

The main consequence is that OpenNL errors trigger now a test suite failure.
2008-08-20 14:47:53 +00:00
Laurent Saboret 5e61260a99 test_all.sh create now a log file 2008-08-20 14:31:55 +00:00
Laurent Saboret 7f6eb45faa Tiny pyramid model. Test case provided by Andreas Fabri. 2008-08-20 10:04:53 +00:00
Laurent Saboret fa729a4476 Removed traces 2008-08-19 15:58:57 +00:00
Laurent Saboret fa30accac8 Surface_mesh_parameterization pre-conditions and post-conditions are now always checked,
in order to catch input meshes that do not respect them and avoid crashes in Release mode: 
- For fixed border parameterizations:
 Preconditions:
     check that the border is mapped onto a convex polygon.
     check that the input mesh is triangular (expensive check).
     check that the input mesh is a surface with one connected component (expensive check).
 Postconditions:
     check one-to-one mapping.
- For free border parameterizations:
 Preconditions:
     check that the input mesh is triangular (expensive check).
     check that the input mesh is a surface with one connected component (expensive check).
 Postconditions:
     check one-to-one mapping.
2008-08-19 15:50:40 +00:00
Laurent Saboret 87462368ca Add back VC++ (2005) makefiles until switch to CMake is over 2008-08-19 15:24:50 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Laurent Saboret 0e68fecdfe This package is now compatible with the default makefile and cgal_test files:
- removed .sln and .vcproj VisualC++ makefiles
2008-06-06 13:59:35 +00:00
Laurent Saboret d04e3f8c0d This package is now compatible with the default makefile and cgal_test files:
- removed find_first script
- copied Mesh_cutter.h, Parameterization_polyhedron_adaptor_ex.h and Polyhedron_ex.h from examples/ to test/
2008-06-06 13:17:07 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Andreas Meyer 20315de571 * replaced CGAL_test_assert with ::assert, instead of CGAL_assertion
* removed include/Testsuite/assert.h
2008-03-19 13:45:36 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Andreas Meyer 6623d525eb * replaced assert in */test/*/*.{cpp,h} with CGAL_test_assertion
* replaced #include <assert.h> with the according CGAL/Testsuite/assert.h
2007-11-07 21:35:42 +00:00
Laurent Saboret 97fa913995 Port to Linux and Windows 64 bits 2007-08-28 15:16:55 +00:00
Laurent Saboret ca6d3a67b3 Don't include stdio.h and replace stdlib.h by cstdlib (as requested by AF) 2007-05-30 15:32:34 +00:00
Laurent Saboret bdf4c349a1 Visual C++ auto-link feature.
Moved .vcproj files to VC/ subfolders.
2007-05-24 14:48:57 +00:00
Laurent Saboret e42006dd28 Path to Cygwin is hard-coded to avoid bugs in batch files (MS-DOS prompt was able to call Cygwin shell commands on my machine) 2007-05-16 15:14:24 +00:00
Laurent Saboret b254c3b684 Replaced _SECURE_SCL=0 by _SCL_SECURE_NO_DEPRECATE (as suggested by AF) 2007-05-14 13:18:52 +00:00
Laurent Saboret 645aac9c61 VC++ 7.1 vcproj settings are modified to match CGAL 3.3 alpha Windows installer. Still use TAUCS shipped with CGAL 3.2.1. 2007-05-11 14:42:12 +00:00
Joachim Reichel 4f47903a25 moved src/Core to src/CGALCore
moved include/CORE to include/CGAL/CORE
moved include/OpenNL to include/CGAL/OpenNL
renamed libcore++ to libCGALcore++
2007-03-13 18:10:39 +00:00
Sylvain Pion 931c0dfa05 remove cgal_test as it is the same as the default-generate one 2007-02-15 23:31:25 +00:00
Laurent Saboret 5aea6fab87 Fixed 2 crashing bugs in Parameterization_mesh_patch_3 (see fork.off and butterfly-2faces.off).
Added is_valid to ParameterizationMesh_3 concept.
Added back traces (if DEBUG_TRACE is defined).
2006-12-08 17:03:40 +00:00
Laurent Saboret b63c7336a1 Better error handling 2006-12-04 11:02:33 +00:00
Laurent Saboret 4a7623521d Copied Jacobi and SSOR preconditioners for OpenNL's BICGSTAB and Conjugate Gradient from Graphite 1.9. Uses by default Jacobi preconditioner. 2006-12-04 09:13:31 +00:00
Laurent Saboret 987377c0b6 Fixed bug: use solver optimized for symmetric definite positive matrices for LSCM method 2006-12-04 08:39:07 +00:00
Laurent Saboret 3f3300946e Update .C -> .o rule to .cpp (used to crash with gcc 3.3.4) 2006-08-30 13:49:02 +00:00
Laurent Saboret 563dcb9dc9 Rename .C files as .cpp (end) 2006-08-24 12:58:00 +00:00
Sylvain Pion 15bcc33768 Mesh_cutter.C -> .cpp 2006-08-06 22:11:09 +00:00
Laurent Saboret 5958afc427 Fixed include paths 2006-05-22 11:25:51 +00:00
Laurent Saboret 19e9a8be05 Fixed include and library paths to be compatible with both CGAL 3.2 beta (I-463) and SVN working directory. 2006-05-18 08:08:44 +00:00
Laurent Saboret 6b98fb6812 Removed browser information to avoid stupid C4503 compilation warning (Visual C++) 2006-05-10 15:35:49 +00:00
Laurent Saboret 9eda840a54 .vcproj makefiles are now compatible with new CGAL 3.2 cgallib.vcproj:
- /MD
- 3rd party libraries are listed in VC++ Options dirs
2006-05-09 09:11:56 +00:00
Laurent Saboret 24207beac9 Workaround ATLAS "Symbol information corrupt" bug with VC++ debugger (see http://sourceforge.net/tracker/index.php?func=detail&aid=760444&group_id=23725&atid=379483) 2006-04-26 14:17:31 +00:00
Laurent Saboret 181b4dd883 Use multithreaded DLL runtime on Windows/Visual C++.
Note: impossible to debug anymore with VC++ :-(
2006-04-21 14:31:27 +00:00
Laurent Saboret 703de7620f Fixed test suite on Cygwin: removed call to time shell command 2006-03-28 07:36:26 +00:00
Laurent Saboret a724496f02 Use smaller test models to avoid cpu time limit 2006-03-27 10:38:06 +00:00
Laurent Saboret 9e8ba2d568 VC++ projects need now only the %TAUCSROOT% variable 2006-03-20 15:50:41 +00:00
Laurent Saboret 50e9f84b48 Fixed usage string 2006-03-17 08:26:41 +00:00
Laurent Saboret 445397cbe8 Added detection of TAUCS library at installation time 2006-03-16 17:21:55 +00:00
Joachim Reichel f582718758 rename create_makefile to cgal_create_makefile to avoid name clashes,
adjust all occurences of create_makefile and create\_makefile in the entire
repository (well, trunk only)
2006-03-15 22:10:02 +00:00
Laurent Saboret 2d7dbed6da Large changes of the user manual requested by MK:
- added paragraph about exact arithmetic and algorithmic complexity (BL)
- concepts are now described at the begining of the user manual
- mesh cutting is better explained (picture provided by PA)
- improved description of available solvers
- reference pages are listed thematically in the reference manual
- Fixed UML diagrams in Software Design section

Other changes requested by PA:
- pictures of algorithms output in 2D (EPS)
2006-03-09 17:15:04 +00:00
Laurent Saboret d6748af3a3 Fixed executable property 2006-03-06 15:22:04 +00:00
Laurent Saboret d2777b879a Changed pointers to mesh to references all over the package (as requested by MK) 2006-03-03 09:33:29 +00:00
Laurent Saboret f1c2d63b1a Rename Parameterization package as Surface_mesh_parameterization 2006-03-01 17:20:56 +00:00