Commit Graph

381 Commits

Author SHA1 Message Date
Laurent Rineau ef116f9fcb Merge pull request #2188 from sloriot/CGAL-prefix_sign
Quality calls to sign
2017-07-10 15:33:55 +02:00
Mael Rouxel-Labbé 9aae7eb74e Cleaned some output from KDS 2017-06-30 11:31:18 +02:00
Mael Rouxel-Labbé d68b8b6fe3 Fixed ref to temporary warning in KDS (bis) 2017-06-29 11:26:11 +02:00
Mael Rouxel-Labbé 9e16a943c6 Fixed "taking ref of temporary" warning in KDS
For KDS' regular triangulations, the construct_point_3(Weighted_point_3) does
_not_ return a reference but builds a point from scratch!
2017-06-28 10:32:57 +02:00
Mael Rouxel-Labbé e3c14f8c30 Restored pragma warning disablers
Accidentally removed in 17ed237f0845b0b346431058fdc7d1742f04dbb7
2017-06-28 10:17:14 +02:00
Mael Rouxel-Labbé 5ffd9a84af Fixed unused variable warning in KDS 2017-06-28 10:17:14 +02:00
Mael Rouxel-Labbé 983dca6158 Cleaning regular-related KDS files 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 4004e99823 Introduced class Default_instantaneous_mapped_kernel
In KDS, predicates will call rep->static_object() on Point_3 (say, e.g.,
for an orientation predicate). If the triangulation is a regular triangulation,
the points are weighted and are thus in the weighted point table.

Since we don't want to store and maintain the bare points in the point table,
we use this class, which redirects the calls to static_object() and
kinetic_object() that would query the table points to instead query the
weighted points table and return the appropriate bare point.
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 3c5f251dc5 Improved typedef readability 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé e704759b9a Restored some debug code to complete state 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 464dcf3a9e Fixed point types before predicate 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 6502fbbb31 Cleaning the code of some kinetic data structure files
Trailing whitespace, indentation, extra ';', ugly typedefs etc.
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 4b443f855f Fixed some point types 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 411ac121ef Cleaned instantaneous_adaptor 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 2ba57b785c Fixed type 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 7e42666397 Fixed types in Cartesian_moving_weighted_point 2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 58e427fcd8 Fixed some predicates
-- traits must have Construct_point_2/3 now
-- renamed power_test to satisfy the new convention
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé ca47935c52 Kinetic regular vertex/cell base must inherit the Cgal::regular_tri vertex/cell base
and not simply the cgal::tri_vertex/cell_base
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 2c9a759504 Restored active_weighted_points_3_table_handle()
Can't abuse active_points_3_table by camouflaging weighted points in it because
we need a separate point and weighted point type (since we do not want to
redefine all predicates less_x_3 for weighted points)
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 9fbf2720ce Annihilated Regular_triangulation_euclidean_traits_23 across all packages
Left a little bit alive in the tests and in the Triangulation_23/doc
2017-06-28 10:15:30 +02:00
Mael Rouxel-Labbé 13f73849c4 Clean off useless comment 2017-06-28 10:15:30 +02:00
Sébastien Loriot 1bba93acc7 explicit that the sign function is the one from CGAL to avoid ambiguity 2017-06-17 07:31:22 +02:00
Andreas Fabri 6e2e044a11 KDS: do not open /dev/null 2017-04-03 19:00:43 +02:00
Laurent Rineau bbf430b0b1 Merge pull request #585 from afabri/Kernel-Weighted_point-GF
Introduce Kernel::Weighted_point_3 together with functors
2016-12-20 19:52:02 +01:00
Andreas Fabri f30b46cb76 fix Voronoi_diagram_2 2016-11-16 10:17:31 +01:00
Andreas Fabri 30c525482d Fix KDS 2016-11-03 13:08:31 +01:00
Andreas Fabri dff4ebe817 made variables const or atomic, and removed unused file 2016-11-03 10:41:00 +01:00
Sébastien Loriot c4cac135d2 protect code that requires gsl 2016-10-10 17:09:44 +02:00
Sébastien Loriot ff1b240a37 replace assert by CGAL_assertion in CGAL code 2016-08-25 11:12:17 +02:00
Laurent Rineau 4c97ab6c96 Minor fixes for -Wconversion warnings in a few packages 2016-04-22 12:36:26 +02:00
Andreas Fabri 06f5dcfb41 I had removed one #endif too much 2016-03-22 19:11:02 +01:00
Andreas Fabri beb1417477 remove unused header files; remove commented includes; changed include paths 2016-02-15 14:20:12 +01:00
Andreas Fabri c8d66590fc more CGAL_USE 2016-01-21 11:07:42 +01:00
Sebastien Loriot 4e9448cb9e Merge pull request #451 from GilesBathgate/throwing-destructors
Introduces a CGAL_destructor_assertion macro.
2016-01-14 14:08:10 +01:00
Giles Bathgate f0ac236713 Introduces a GCAL_NO_ASSERTIONS_BOOL macro
This macro is always defined. Its value will be true when assertions are defined
and false when assertions are not defined. This macro can then be used in place
of a true false constant, such as is needed for CGAL_NOEXCEPT.
2016-01-08 20:31:59 +00:00
Giles Bathgate f6dfeba815 Use CGAL_NO_ASSERTIONS with the CGAL_NOEXCEPT macro.
This avoids penalizing release builds in which assertions are not
made within the destructors, and so no exception can be thrown.
2015-12-19 15:47:16 +00:00
Simon Giraudot f21cb46900 Remove deprecated "register" keyword 2015-12-17 08:20:56 +01:00
Giles Bathgate 3a725499ad Introduces CGAL_NOEXCEPT macro.
This macro is available for future compatibility with c++11, which
by default marks destructors noexcept(true). Some destructors
in CGAL do throw exceptions an so should be marked noexcept(false).
Since noexcept is not available in c++0x and below the macro is
disabled when CGAL_CXX11 is not defined since it is not required.
2015-11-23 16:47:59 +00:00
Giles Bathgate 9645135ff5 Introduces a CGAL_destructor_assertion macro.
This macro can safely be called from a destructor, even when
the stack is currently unwinding, and thus prevents uncatchable
exceptions.
2015-11-23 16:47:59 +00:00
Laurent Rineau 7612345f2f Trivial fix: add newline at EOF
There was a warning with gcc 4.1.2, on CentOS 5:
```
In file included from /mnt/testsuite/include/CGAL/Kinetic/Active_objects_vector.h:27,
                 from /mnt/testsuite/include/CGAL/Kinetic/Exact_simulation_traits.h:27,
                 from /home/cgal_tester/build/src/cmake/platforms/CentOS5/test/Kinetic_data_structures/Delaunay_triangulation_3.cpp:7:
/mnt/testsuite/include/CGAL/Kinetic/internal/debug_counters.h:79:33: warning: no newline at end of file
```
2015-11-05 11:12:57 +01:00
Sebastien Loriot 2e493f297b Merge pull request #389 from afabri/CGAL-Qt3-GF
Remove Qt3 based demos
2015-10-23 17:08:49 +02:00
Laurent Rineau 330a0e75a2 Merge pull request #385 from cjamin/CGAL_headers_only-gdamiand_cjamin
CGAL headers only, step 0
2015-10-13 16:37:38 +02:00
Andreas Fabri 5306f7b7f2 Use CGAL_assertion_code() to avoid warnings 2015-10-08 09:28:35 +02:00
Sébastien Loriot 4787bda61f remove documented widget based on Qt3 2015-10-05 15:20:06 +02:00
Guillaume Damiand e4342d50d2 Merge remote-tracking branch 'cgal-dev/CGAL_headers_only-gdamiand_cjamin' into CGAL_headers_only-gdamiand_cjamin 2015-10-01 09:48:54 +02:00
Guillaume Damiand cf1c0ea0ca Merge branch 'CGAL_headers_only-gdamiand_cjamin-OLD' into CGAL_headers_only-gdamiand_cjamin 2015-10-01 09:12:55 +02:00
Sébastien Loriot 894ee557a6 Merge branch 'local/Fix_warnings'
fix various warnings

Tested in CGAL-4.7-Ic-94
2015-07-23 14:45:05 +02:00
Sébastien Loriot 6dc5695989 remove unused variable warning 2015-07-22 15:47:23 +02:00
Peter Palfrader 166412c56a Fix linking issue caused by violation of the one definition rule.
When including CGAL/Polynomial/CORE_Expr_root_stack.h in a header file
that in turn gets included in multiple .cpp files, code from
CORE_Expr_root_stack.h ends up in multiple object files and causes
linking problems:
  multiple definition of `CGAL::POLYNOMIAL::operator<<(std::ostream&, CGAL::POLYNOMIAL::CORE_Expr_root_stack const&)'
  multiple definition of `CGAL::POLYNOMIAL::internal::operator*(CORE::BigRat const&, CGAL::POLYNOMIAL::internal::CORE_polynomial const&)'

Work around this issue by declaring both operators inline.
2015-07-21 10:00:13 +02:00
Guillaume Damiand 4bbe2a82e9 Add missing #include; add some case IO::PRETTY to avoid some warning. 2015-06-12 14:08:29 +02:00