Commit Graph

1078 Commits

Author SHA1 Message Date
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
Sébastien Loriot e174d79248 Bug fix in merge function of Bezier_x_monotone 2011-04-05 10:47:36 +00:00
Sébastien Loriot 0399f8da12 Bezier traits bug fix
*identity test of span must be done using directions
 *add a test for identical but opposite spans 
 *add missing make_exact calls
 *special case of has_same_support for vertical bezier
 *special case of _is_in_range for vertical bezier
 *add a do-while loop to increase precision in _exact_vertical_position
2011-04-05 09:45:14 +00:00
Andreas Fabri 95c093feaa benchmarks -> benchmark 2011-03-22 16:27:42 +00:00
Sébastien Loriot 7927234379 Bezier traits:
*fix a bug in resultant computation
*a missing originator when using split with an endpoint of a bezier.
 this happen for example when computing the arrangement of a vertical bezier
and another one having its start point on the vertical one
*fix bug in skewbbox intersection in the case of a vertical bezier
2011-03-18 18:55:54 +00:00
Efi Fogel 8b296bf01c introduced has_outer_ccb(0 in the arr. face 2011-03-09 12:41:47 +00:00
Sébastien Loriot 0ebdccfa4e update URL and Id tag 2011-03-02 14:59:51 +00:00
Efi Fogel 95bd05431e updated 2011-03-02 10:25:05 +00:00
Sébastien Loriot 0260f405a5 overlap of spans was not detected when equal.
As a consequence, identical bezier curves was intersected only at one of
extremity (overlap was not detected).
2011-03-01 14:04:47 +00:00
Efi Fogel 1d3a127aa5 updated 2011-03-01 10:45:17 +00:00
Sébastien Loriot e5a96255ba *remove warnings.
In particular remove UNTESTED_XXXXXXXXXXX unused variable that possibly hide true warnings. 
In those cases, the string printed while executed now starts with "NOTE: ".
*CGAL internal code no longer rely on depecrated features
2011-02-28 15:28:28 +00:00
Laurent Rineau da95064578 Update the \ccPkgHowToCiteCgal tag for CGAL-3.8 (2011). 2011-02-24 15:21:10 +00:00
Efi Fogel cb12f62288 Deprecated Env_default_diagram_1. Replaced by Envelope_diagram_1 2011-02-24 11:34:03 +00:00
Sébastien Loriot 1c4d5c4bb9 set the multiplicity of intersection points of bezier curve to unknown
when it was determined using a control point during de Casteljau subdivision
(when we try to compute approximated intersection points).

update test-suite to set to 0 the multiplicity of bezier segments sharing an endpoint,
add an example of 2 bezier bezier tangent at a control point found during de Casteljau
subdivision. Also add an example of an intersection point of two bezier segments
which multiplicity is 1.
2011-02-22 15:14:40 +00:00
Michael Hemmer 73c28d947c add is_empty function to indicated that no landmarks where generated 2011-02-21 09:22:44 +00:00
Efi Fogel ced88fe743 cleanup 2011-02-19 19:59:29 +00:00
Efi Fogel 1f97afb3b7 cleanup 2011-02-19 19:58:01 +00:00
Sébastien Loriot a7b078cdcf The change I did in r61259 restricted the look-up of intersection
of bezier curves with parameters in range  [0,1]. I need to change also the pairing
of parameters as a parameter s  in the range [0,1] for one curve may correspond to
a parameter t outside the range (so the number of s and t values may be different).
To handle this problem, we choose the list with less parameter values and make the
pairing with the other values.
Note that on the test-suite, this divided by 3 the time needed to compute
the intersection of the two polygons.
2011-02-18 10:41:22 +00:00
Sébastien Loriot 93238731cd *allow duplicate control points for Bezier curves.
After checking, it appears that everything is done at the polynomial
level in the code and should be fine (after having fixed the solver
to find roots in [0,1]). Modify a test file to use duplicated control points.

*forgot to generate exact representation of input in case they
were just approximations.
2011-02-16 15:10:34 +00:00
Efi Fogel 20028f4a80 cleanup 2011-02-15 11:21:45 +00:00
Efi Fogel 62935f5d28 cleanup 2011-02-15 11:21:16 +00:00
Efi Fogel e4dac88819 Corrected 2011-02-15 09:39:44 +00:00
Eric Berberich 9df4a09926 fixed friend (AF remark) 2011-02-10 01:28:44 +00:00
Eric Berberich 3f767e6309 fixed CERR -> CKvA_ERROR 2011-02-10 01:25:36 +00:00
Sébastien Loriot fe14f0c121 correct but in Bezier_x_monotone::point_poisition in the case
the bezier is a vertical or horizontal segment.
This fix showed a probable bug in expected result of the testsuite:
 In the case the bezier is a vertical segment,
 compare_y_at_x now returns EQUAL when the query point
 is inside the segment.
2011-02-09 17:38:10 +00:00
Efi Fogel 78b4a169b2 cleanup 2011-02-08 11:54:18 +00:00
Efi Fogel 9d53f217ea Enabled itemize inside the description of the locate function 2011-02-08 11:53:46 +00:00
Sébastien Loriot 263ff08e7d correct buggy comment 2011-02-07 15:43:37 +00:00
Sébastien Loriot eff6c7b647 bug fix in the case the query point is a rational "user made"
the case of a algebraic "user made" is not solved.
2011-02-04 11:22:23 +00:00
Sébastien Loriot 5b9190c6c3 handle case in bezier traits when coordinate polynomials are 0. 2011-02-01 10:38:58 +00:00
Sébastien Loriot e9c19883e2 add a comment to avoid a possible bug
when using _find_leftmost_vertex_on_open_loop in another
function that _is_inside_new_face.
2011-01-25 09:02:35 +00:00
Marc Glisse 14d77ae2ea C++ doesn't have mutable references. And they shouldn't be needed
since C++ has a shallow const. If this breaks any compiler, we'll need
to introduce a feature macro.
2011-01-24 09:31:32 +00:00
Eric Berberich 41422f6764 added missing typedef 2011-01-17 13:58:47 +00:00
Eric Berberich 02cca8973e clean up trunk 2011-01-12 22:34:35 +00:00
Eric Berberich f06445aca1 added missing include 2011-01-12 22:34:20 +00:00
Alexander Kobel 711371539a added missing include guard 2011-01-12 21:23:26 +00:00
Sébastien Loriot d8745b69e4 *another patch to _find_leftmost_vertex_on_open_loop. In the case
the lowest incident halfedge is he_before, we should return NULL
(I removed the test he!=he_before as if he he_left_low is updated
 several time with the same v_min, the fat that he_before==he_left_low
 can be detected).
*update testsuite to test this case.
2011-01-10 14:32:18 +00:00
Sébastien Loriot 81085ed1dd *bug fix for function insert_at_vertices in internally used function
_find_leftmost_vertex_on_open_loop. The lowest halfedge incident 
 to the left most vertex was incorrectly detected in some configurations
 (see the example added in test_insertion.cpp). The fix consists in explicitely
 testing in case the left most vertex is visited several times that the halfedge
 is really the lowest one using functor Compare_y_at_x_right_2.

*update test_insertion so that failure is detected
2011-01-10 13:57:57 +00:00
Sébastien Loriot b60fa72afd add a test for insert_at_vertices (for bug reported) 2011-01-10 11:47:50 +00:00
Eric Berberich 41fa1f6b48 prepare for numerical 2011-01-09 11:44:53 +00:00
Laurent Rineau ea27b02255 Try to fix miss-compilation with recent versions of g++ and Intel compiler,
in release mode.

I do not know exactly why this patch fixes the error.
2010-12-21 17:52:03 +00:00
Sébastien Loriot c99974d817 add missing ++ to output iterator 2010-12-08 07:54:00 +00:00
Sébastien Loriot 75912b6e59 correct a bug in compare_slope of X-monotone Bezier curve
in the case where the evaluation is made at point where the tangent
to the bezier curve is vertical. In that case the comparison 
relies on the sign of the derivate of the y coordinate evaluated at
that point. It must take into account the fact that the x-monotone
bezier curve is directed_right or not (ie x increases or decreases with t)
2010-12-07 15:50:13 +00:00
Sébastien Loriot d3a6f51f6d disambiguate doc of compute_intersection_points 2010-11-30 13:16:39 +00:00
Laurent Rineau 06a64e77a5 Fix a bug in the documentation: <CGAL/IO/Arr_tags.h> does not exists, but
<CGAL/Arr_tags.h> does.
2010-11-25 16:51:48 +00:00
Sébastien Loriot 3adcf87eea undo commit r59582 2010-11-23 10:09:45 +00:00
Sébastien Loriot 74bf160f3e revert file that should not have been commited in r59808 2010-11-22 07:50:10 +00:00