Commit Graph

58 Commits

Author SHA1 Message Date
Mariette Yvinec faa00e3d9e remove copyright headres from Mesh_3 examples 2012-09-11 15:15:02 +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
Laurent Rineau 0b427c99eb Fix license headers 2012-02-06 11:39:56 +00:00
Andreas Fabri 75f50a1513 Fix for Windows 'min/max' bug 2012-01-18 11:32:21 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Sébastien Loriot 80e0ff0c81 use cell_radius_edge_ratio in examples instead of cell_radius_edge which is
no longer documented
2011-12-14 09:42:11 +00:00
Laurent Rineau 08a567a025 Remove this auto-generated cgal_test_with_cmake 2011-09-29 11:43:44 +00:00
Laurent Rineau 53a25ed753 Remove lines of code that should have never been added to this example
BUGFIX
2011-09-29 11:42:37 +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 Rineau 6d500f3605 Make the code conform to the documentation: add C3t3::edges_in_complex_end(Curve_segment_index) 2011-04-19 12:15:22 +00:00
Laurent Rineau 95cde53b17 Merge "Mesh_3 with features" in trunk, so that it is in CGAL-3.8, at last!
https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Mesh_3_with_features
2011-01-10 15:43:22 +00:00
Laurent Rineau 77a2bead80 Add missing svn properties (keywords and eol-style). 2010-09-20 12:12:46 +00:00
Andreas Fabri 85462651e4 Replace derivation of a kernel by a typedef, as otherwise we do not profit from static filters in the EPIC kernels 2010-05-14 08:58:30 +00:00
Stéphane Tayeb 1f3332bf63 Move Mesh_3 from candidate-packages to trunk (2/2) 2010-01-06 13:46:02 +00:00
Stéphane Tayeb 313a28d9a2 Move Mesh_3 from candidate-packages to trunk (1/2) 2010-01-06 13:44:50 +00:00
Stéphane Tayeb 7057ddc2d1 Merge [r51556-r51996]
From branches/CGAL-3.5-branch/Mesh_3 To trunk/Mesh_3.

r51758 | lrineau
* Fix all \ccPkgHowToCiteCgal at once to turn 08 into 09

r51937 | stayeb
* Fix polyhedral oracle issue: switch to exact intersection computation.

r51957 | stayeb
* cleanup example folder.

r51960 | stayeb
* Remove wrong using namespace statement.
2009-09-21 14:36:31 +00:00
Laurent Rineau 07c73ca08d Remove no-longer-used GNUmakefile (and deps) 2009-08-20 13:58:10 +00:00
Laurent Rineau b6f567e260 add a new cmake variable in CGALConfig.cmake, so that one can detect if CGAL_ImageIO is build with ZLIB support. Use that variable in examples/Mesh_3/. 2009-07-23 15:02:02 +00:00
Stéphane Tayeb e8a51bff38 Remove unused data. 2009-07-10 11:32:18 +00:00
Stéphane Tayeb 2b996f5f46 * Change example parameters to achieve smaller execution time (seems to be a problem on a few platforms in test suite)
* Zip liver image (mesh_3D_image now needs ZLIB)
2009-07-08 12:18:56 +00:00
Stéphane Tayeb 58ba96a8ca Minor fix: revert r50348 changes. 2009-07-07 10:54:12 +00:00
Stéphane Tayeb e32ea59a7d * Remove old commentaries
* Renaming
* Minor fix in mesh_polyhedral_domain example
2009-07-03 15:11:04 +00:00
Stéphane Tayeb fe60ae5f4e Move Mesh_3 from branches/experimental-packages to trunk. 2009-06-26 15:29:26 +00:00
Laurent Rineau 3c6e2102f0 Move Mesh_3 into "experimental-packages" until accepted in CGAL.
(Request from Sylvain Pion.)
2007-03-19 07:32:03 +00:00
Joachim Reichel d08f6bea45 replace obsolete variable CGAL_QT_LDFLAGS by CGAL_LDFLAGS 2007-03-11 09:54:17 +00:00
Sylvain Pion 6fb5cb906b Remove trailing white spaces and end of lines.
(using : perl -pi.bak -e 's/\s+$/\n/' */examples/*/*.cpp )
2007-03-10 14:59:41 +00:00
Laurent Rineau ab6c13badb *** empty log message *** 2006-09-13 13:24:31 +00:00
Laurent Rineau f3917f0301 fix symlinks 2006-07-10 10:22:28 +00:00
Laurent Rineau f5c912e666 - major switch from .C to .cpp. Andreas's script left a lot of things that
had to be fixed manually.
- new debug macro in <CGAL/Surface_mesher/Standard_criteria.h>
  - CGAL_MESH_3_DEBUG_CRITERIA
  Used in test/Mesh_3/combined_spheres*.cpp
2006-07-10 10:12:38 +00:00
Andreas Fabri 0365c9fd16 changed .C to .cpp in examples 2006-07-09 21:13:19 +00:00
Laurent Rineau bf07fad719 new way of dealing with dependencies, in my packages 2006-07-05 16:28:34 +00:00
Laurent Rineau 5c6b9f1962 use traits with exact circumcenter 2006-07-05 16:27:14 +00:00
Laurent Rineau 23b3110bbf - Change the way of making (private) symlinks to the tools in
../../application/.
- Remove the link for medit_to_cgal, which has been removed (because a
medit file can not be loaded into a Delaunay or regular triangulation,
actually).
2006-07-05 08:16:04 +00:00
Laurent Rineau f6030a7d46 minor update: change the names of cell base 2006-06-27 11:41:38 +00:00
Laurent Rineau d0d24488f5 - in Surface_mesher:
- remove deprecated include/CGAL/Surface_mesher/Implicit_surface.h
  - rename CGAL::Surface_mesher::Implicit_surface_oracle to
           CGAL::Surface_mesher::Implicit_surface_oracle_3
    and then, rename include/CGAL/Surface_mesher/Implicit_surface_oracle.h
    to include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h
- in Mesh_3: adapt code to the above change.
2006-06-26 12:42:39 +00:00
Mariette Yvinec 7a51200c25 remove an old -I option 2006-06-22 13:02:09 +00:00
Laurent Rineau 00eba3a25d The option --number_of_pump is no longer valid. 2006-06-22 06:21:58 +00:00
Laurent Rineau 5c6b881a1d ** In Surface_mesher:
- remove subdirectories of include/CGAL/Surface_mesher: files of Criteria/
  and Oracles/ are moved one step back.
- repear the polyhedral oracle
- Implicit_oracle.h is now Implicit_surface_oracle.h (and the class has
been renamed too.
- no longer "Kernel_point" trick in Implicit_surface_oracle.h
- *but* "Kernel_point" trick is needed in Polyhedral_oracle.h! :-(

** In Mesh_3:
- repear examples/Mesh_3/polyhedral_surface_mesher.C
- add two input files in ./inputs/*.off (with their medit files)
2006-06-13 13:08:19 +00:00
Laurent Rineau a705717851 - fix a robustness issue in examples/Mesh_3/implicit_surfaces_mesher_3.C:
need to use CGAL::Regular_triangulation_filtered_traits_3 as geom_traits!!
2006-06-07 13:55:41 +00:00
Laurent Rineau 171707f114 - sliver exuder fixed,
- Combining_oracle fixed too.
2006-06-07 12:55:01 +00:00
Laurent Rineau b2a71386fa Copy Mesh_2, Mesh_3 and Surface_mesher, from the branch
"cannot_wait_for_CGAL-3.2" to the trunk.

My idea: the branch is the real working version, and I want it to be joined
back to the trunk:

          __________________________         cannot_wait_for_CGAL-3.2 branch
         /                          \
        /                            \ 
-------------------------------------------- trunk
        S                             M

The modification of the trunk between the splitting point S and the merging
point M has already been merged into "cannot_wait_for_CGAL-3.2".

The trunk versions of these three packages have been removed already.
2006-06-06 13:38:16 +00:00
Laurent Rineau ebb3f7c912 Remove trunk of Mesh_2, Mesh_3 and Surface_mesher.
Do not worry: I will "svn cp" the branch "cannot_wait_for_CGAL-3.2" into the
trunk, and the trunk will inherit from the logs of the branch.

My idea: the branch is the real working version, and I want it to be joined
back to the trunk:

          __________________________         cannot_wait_for_CGAL-3.2 branch
         /                          \
        /                            \ 
-------------------------------------------- trunk
        S                             M

The modification of the trunk between the splitting point S and the merging
point M has already been merged into "cannot_wait_for_CGAL-3.2".
2006-06-06 13:36:21 +00:00
Laurent Saboret 87d65f75e3 Fixed svn properties of ASCII files (as defined by Maintenance/svn_client/config) 2006-04-18 12:42:52 +00:00
Laurent Rineau 31e2cfc6dc - the ImplicitFunction concept now has a operator()(Point), instead of
operator()(FT, FT, FT). This implied the modification of:
    - the Gray_level_image_3 and its documentation Gray_level_image_3.tex
    (new template parameter, to have the type of point),
    - all examples or demo,
    - Mesh_3 examples or demo as well

  This modification was mandatory, before the CGAL-3.2 release, to avoid
  Implicit_surface to use methods x(), y() and z() of points.

  Fully tested, etc.
2006-04-06 22:52:38 +00:00
Laurent Rineau c906966566 - if the surface_index() of a point is 0, set it to 1, in
include/CGAL/Mesh_3/Implicit_surface_mesher_visitor.h
  This visitor is passed to the Surface_mesher, when it is used from
  Mesh_3. This patch makes surface_index() of points on the surface to
  be 1, if is was 0.
- replay-skull now run correctly too.
- sliver exuder still crash. :-(
2006-04-06 16:44:08 +00:00
Laurent Rineau 25709b25b9 - examples/Mesh_3/replay-* almost runs correctly. 2006-04-05 23:18:27 +00:00
Laurent Rineau 35634e9d8d remove essai.C 2006-04-05 22:37:21 +00:00