Commit Graph

323 Commits

Author SHA1 Message Date
Simon Giraudot b3baaf7e92 Move doc of CGAL::Color to header and rewrite class 2019-01-24 14:16:19 +01:00
Simon Giraudot 37a8f12f05 Handle more types 2019-01-24 10:58:57 +01:00
Simon Giraudot 011f919ce6 Fix color binary alignment when writing 3 chars 2019-01-24 10:58:34 +01:00
Simon Giraudot 6789ca1c41 Some more modifications of the PLY interface 2019-01-23 11:25:35 +01:00
Simon Giraudot 12dfbd6353 Reorganize PLY IO functions/files 2019-01-22 10:00:23 +01:00
Maxime Gimeno e107612c31 Fix pre processor test 2019-01-10 08:54:49 +01:00
Maxime Gimeno 743569f854 Also disable WKT if gcc version is <4.5 2019-01-09 16:32:08 +01:00
Andreas Fabri 6183456090 Remove assignemnt instead of adding copy constructor 2019-01-07 09:48:55 +01:00
Andreas Fabri d248e61e04 Add copy constructor in order to avoid warning 2019-01-07 08:03:57 +01:00
Maxime Gimeno c6835292d8 Add include of license 2018-12-12 16:50:51 +01:00
Maxime Gimeno 7b13f4a969 Add misisng license header, rename vtu functions and update change.md 2018-11-23 10:11:23 +01:00
Maxime Gimeno 6e4ab58edc Put write_vtk in Polyhedron_IO 2018-11-20 15:15:53 +01:00
Maxime Gimeno 5731515056 always include cgal types to keep the dependencies (for travis) 2018-11-08 10:29:39 +01:00
Maxime Gimeno 080f63b1b8 Disable WKT for boost < 1.56 2018-11-07 11:58:50 +01:00
Maxime Gimeno 76c8c1f69f Add misisng header for boost 1.55 2018-11-06 11:43:37 +01:00
Maxime Gimeno 96bb50b361 Clean-up 2018-11-05 11:25:07 +01:00
Maxime Gimeno cbf3e04fa6 Doc fix. 2018-10-30 14:15:01 +01:00
Maxime Gimeno da4bb1f26a Clean-up 2018-10-30 12:10:58 +01:00
Maxime Gimeno ea2043a842 remove remaining geometry.hpp 2018-10-30 12:08:50 +01:00
Maxime Gimeno 49b88e533f Move and split vtk_io.h to Mesh_2 and Mesh_3 to avoid license and dependencies problems. Also fix vtu writer of VTK_io_plugin for polygon meshes. 2018-10-03 11:15:37 +02:00
Maxime Gimeno 223fa687c2 Add function for CDT. and use it in Triangulation_2 demo. Missing Doc 2018-08-27 16:29:47 +02:00
Maxime Gimeno 06db5dafbc WIP integrate functions. 2018-08-27 14:56:18 +02:00
Maxime Gimeno 27b7c318fb - Remove TODOs,
- Only support Cartesian kernels
- replace boost included header
2018-07-17 13:55:12 +02:00
Maxime Gimeno 8f3724c011 Add a global reading function 2018-05-15 10:04:23 +02:00
Maxime Gimeno 17f0e880c3 Change doc and remove it from the header to stop mistaking with the one in doc/ when doing fixes. 2018-05-15 10:04:23 +02:00
Maxime Gimeno 32e02c01d6 fix doc 2018-05-15 10:04:23 +02:00
Maxime Gimeno df980abff6 Add WKT IO to 2D demos and add saving to stream_lines_2_demo
Also adds traits for Point_3 to be able to interract with weighted points through them.
2018-05-15 10:04:23 +02:00
Maxime Gimeno 94809fccd9 Add some doc 2018-05-15 10:04:23 +02:00
Maxime Gimeno 3e4b437816 fix misisng include 2018-05-15 10:04:23 +02:00
Maxime Gimeno 14ef2163c4 Move everything to Stream_support 2018-05-15 10:04:23 +02:00
Laurent Rineau 78e7060525 Merge pull request #2712 from afabri/CGAL-VC+warnlevel_4-GF
Deal with VC++ warnings of level /W4
2018-02-19 14:27:06 +01:00
Andreas Fabri abe933a684 Address the warning concerning SCL_SECURE for VC++ 2018-02-09 15:00:14 +00:00
Andreas Fabri cbf3a16471 libs compile without warning 2018-01-17 15:02:32 +00:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Simon Giraudot 8043d342e7 Merge branch 'Classification-GF-old' into Classification-GF 2017-07-21 12:06:19 +02:00
Andreas Fabri 7c62b14fd0 Let's remove the manipulators again, as they are of little practical value 2017-06-30 18:13:42 +02:00
Andreas Fabri fbdec23155 inline functions 2017-06-30 18:13:42 +02:00
Andreas Fabri bddd05aef4 fix compilation errors 2017-06-30 18:13:42 +02:00
Andreas Fabri 388a7678e6 Add an undocumented manipulator which allows operator<< to dispatch OFF, PLY, etc 2017-06-30 18:13:40 +02:00
Simon Giraudot 3ce8e9fc64 Merge branch 'Classification-GF-old' into Classification-GF 2017-03-13 07:51:54 +01:00
Andreas Fabri e2fbd2d46d Stream_support: No longer a need for replacement of istream >> double for VC++ 2017-01-13 18:39:40 +01:00
Simon Giraudot 310d81864e Merge branch 'Classification-GF-old' into Classification-GF 2016-11-23 08:55:57 +01:00
Andreas Fabri 73ff40470c Make variable const 2016-11-02 16:30:21 +01:00
Laurent Rineau a34934eab7 Missing #include
Plus rewrap a long line of comments.
2016-10-26 14:54:54 +02:00
Marc Glisse fa61ad20c3 Use Fraction_traits::Compose in read_float_or_quotient. 2016-10-26 13:10:55 +02:00
Laurent Rineau 223c1cf5a4 Merge pull request #1530 from lrineau/Installation-compute_dependencies-GF
Compute and fix packages dependencies
2016-10-05 13:11:04 +02:00
Laurent Rineau 1aefb3b0f3 include <CGAL/config.h>, not <CGAL/basic.h> 2016-09-30 15:23:14 +02:00
Laurent Rineau 7dbc756d42 Mesh_3: Fix other conversion warnings 2016-09-29 14:39:11 +02:00
Simon Giraudot 85a5ef28dc Merge branch 'Point_set_classification-GF-old' into Point_set_classification-GF 2016-07-05 13:49:33 +02:00
Sébastien Loriot c951fe0fca Merge pull request #1035 from lrineau/CGAL-fix_Wconversion_warnings-GF
Fix -Wconversion warnings, and issues detected by those warnings
2016-06-24 13:30:48 +02:00
Laurent Rineau fa5cb831c9 Add Output_rep<T,F>::is_specialized...
.. that allows `Dump_c3t3` to detect if a type can be streamed, using
either `operator<<` or `Output_rep<T>`.
2016-06-15 18:10:14 +02:00
Sébastien Loriot 5b826d5a2b clean up 2016-05-23 11:26:04 +02:00
Maxime Gimeno 3dfa4cb2c4 Fix for alpha values 2016-05-12 17:11:29 +02:00
Maxime Gimeno b8ecd34eb5 Fix facet color reading 2016-05-12 17:11:28 +02:00
Maxime Gimeno 2f780958d8 Use an array instead of a switch for the color-map 2016-05-12 17:11:28 +02:00
Maxime Gimeno 1c0a8e3f4e warning fix 2016-05-12 17:11:28 +02:00
Maxime Gimeno c14c5b9129 Clean up 2016-05-12 17:11:27 +02:00
Maxime Gimeno f3de4dfe01 Clean up 2016-05-12 17:11:27 +02:00
Maxime Gimeno 128adc4c32 Addition of a color management of the not oriented OFF with colors 2016-05-12 17:11:26 +02:00
Maxime Gimeno f04a6f98ce Finished the management of the per-vertex color 2016-05-12 17:09:44 +02:00
Maxime Gimeno 3f5b9db863 Addition of the selection_color 2016-05-12 17:09:44 +02:00
Andreas Fabri 4b7373d301 u_char -> unsigned char ; Do not qualify get() with boost:: 2016-05-12 17:09:44 +02:00
Maxime Gimeno 92abf686b3 WIP : add color to IO_OFF 2016-05-12 17:09:14 +02:00
Laurent Rineau 73e2ccae64 Fix -Wconversion in Stream_support 2016-04-22 12:36:26 +02:00
Laurent Rineau 55e6c179a4 Update io.h
Fix #1024.
2016-04-20 11:59:25 +02:00
Andreas Fabri d18db3c527 Half the time of reading float and double for VC++ 2016-04-18 16:25:09 +02:00
Andreas Fabri 00cf5f937d inline; clean CMakeLists 2016-02-25 12:21:03 +01:00
Andreas Fabri 1baa329711 operator>>(Lazy_exac_nt) calls new function read_float_or_quotient 2016-02-24 16:35:07 +01:00
Andreas Fabri 2e243418fa fix indentation 2016-02-18 11:54:48 +01:00
Andreas Fabri af9b2ee0de If we are already at EOF we do nothing to skip until EOL 2016-02-18 11:48:20 +01: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
Andreas Fabri b1c417e7b7 fix reading of doubles. There may be a + after the e 2015-04-22 10:10:03 +02:00
Guillaume Damiand 7f468a6b14 Bug fix 2015-03-16 17:37:05 +01:00
Guillaume Damiand 6b3fbfb5ef io static methods 2015-03-16 17:14:56 +01:00
Clement Jamin beaec12af1 Use get_mode() 2015-03-16 14:34:10 +01:00
Guillaume Damiand 9c78897ba5 Merge branch 'CGAL_headers_only-gdamiand_cjamin-old' into CGAL_headers_only-gdamiand_cjamin 2015-03-16 14:00:43 +01:00
Andreas Fabri f05a19035c #include <cctype> for isspace() 2014-12-04 14:22:49 +01:00
Laurent Rineau af90b1d6bc Restore the initial indentation incorrectly modified by this branch 2014-12-04 13:45:26 +01:00
Laurent Rineau 9ef939e1cf Fix Input_rep<double>
- EOF was not handled.
- sscanf may not recognize a double
2014-12-04 13:01:08 +01:00
Andreas Fabri a668af3628 unset the failbit if everything went fine 2014-12-03 19:08:57 +01:00
Andreas Fabri 679f6de9b7 As the exponent can be negative we have to check for '-' too 2014-11-30 23:00:17 +01:00
Andreas Fabri a1a0f5c17d Input_rep<double> now reads a string (0-9eE\.)* 2014-11-27 11:14:52 +01:00
Andreas Fabri 2916850771 use iformat for reading doubles 2014-11-26 16:53:50 +01:00
Andreas Fabri f50bbd72c4 Use iformat and Input_rep<double> instead of an additional function 2014-11-24 17:10:46 +01:00
Andreas Fabri 36f1514957 Add a generic template function extract(istream&, T&) 2014-11-13 20:34:58 +01:00
Guillaume Damiand e8fe29c79c Ok for the compilation version header only (only for the treated files). 2014-10-31 17:09:48 +01:00
Guillaume Damiand 15b1cfdcb7 Color_impl and io_impl ok 2014-10-30 19:37:47 +01:00
Guillaume Damiand 5895d2b9e0 Add io_impl 2014-10-30 18:51:03 +01:00
Guillaume Damiand 1182319f5d Redo all the modifs to remove all the cpp files from cgal.
First step where all the XXX.cpp are copied into XXX_impl.h files.
The macro CGAL_HEADER_ONLY allows to know if impl files need to be
included or not into header files; and allow to decide if functions are
in impl files are inline or not.

Next step: process with static variables for the header only version.
2014-10-30 16:05:22 +01:00
Andreas Fabri c537e4ed64 Use the workaround only for VC++ and only starting from VC10 2014-04-11 16:51:04 +02:00
Andreas Fabri afdeb14bd7 Add a replacement for operator>>(istream&, double&) 2014-04-10 13:10:41 +02:00
Laurent Rineau a04891ff93 WARNFIX: fix some warnings triggered by -Wconversion on g++ 2012-08-09 16:06:54 +00:00
Philipp Möller 88963525b6 Merged iostream into Stream_support 2012-06-22 14:43:58 +00:00
Laurent Rineau 52d230565c Remove files added but not used 2012-04-18 13:43:24 +00:00
Andreas Fabri 9d86cb2ea9 Fix for Windows 'min/max' bug 2012-01-18 10:10:14 +00:00
Laurent Rineau cabc943d53 Missing exports 2011-10-18 16:46:54 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Andreas Fabri cbfe32ce37 Add declspecs for Visual C++ so that we can build dlls 2011-10-05 19:12:23 +00:00
Sébastien Loriot dff6dda8b3 Remove from copyright holder
Freie Universitaet Berlin (Germany), Martin-Luther-University Halle-Wittenberg
(Germany) and RISC Linz (Austria) as they transfer the copyright to other
sites.
2011-09-21 19:46:31 +00:00
Philipp Möller 34d6ac52ec Replaced [U]Integer* with boost::[u]int*_t in Polyhedron, Polyhedron_IO and Stream_support 2011-06-10 14:51:30 +00:00
Sébastien Loriot 49d3fd8430 correct type y= by z= 2010-12-08 09:43:42 +00:00
Marc Glisse 4174a8cce7 make Ostream_iterator assignable, as befits an output iterator 2010-12-05 09:32:16 +00:00
Andreas Fabri 778420c709 Put std:: before numeric_limits 2010-11-18 10:07:05 +00:00
Andreas Fabri 4372c2f5b3 Initialize huge std::size_t properly and not with -1, which triggers a warning 2010-11-18 09:59:39 +00:00
Marc Glisse 5ac4b18901 Use consistent integer types to avoid warnings. 2010-10-29 13:37:32 +00:00
Laurent Rineau 375baeee10 The badbit is for I/O error, and failbit is for logic errors.
My reference; http://www.cplusplus.com/reference/iostream/ios/clear/
2010-06-28 10:58:52 +00:00
Laurent Rineau a528e215dc ios::fail() is a more general test than bad() 2010-06-28 10:57:58 +00:00
Andreas Fabri 6988668606 Error handling when passing from ptrdiff_t to size_t 2010-06-28 10:53:01 +00:00
Andreas Fabri 63b759a9fd ptrdiff_t -> size_t 2010-06-28 10:51:05 +00:00
Andreas Fabri 124b252def Use istream::bad() 2010-06-28 10:19:08 +00:00
Andreas Fabri 8dc7ff13fb int -> size_t 2010-06-28 08:32:45 +00:00
Andreas Fabri a83ca3c44e int -> size_t 2010-06-25 07:35:33 +00:00
Andreas Fabri 83795f53ca int -> size_t 2010-06-22 13:15:46 +00:00
Andreas Fabri 21c0ba670f Binary OFF format is 32bit, so we have to cast size_t 2010-06-22 11:54:07 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Sylvain Pion 85dc12f2a7 Remove empty lines at beginning and end of files
(apply Scripts/developer_scripts/remove_empty_lines.pl).
2010-02-01 12:55:28 +00:00
Andreas Fabri 81cf2e0dde output for polyhedral surfaces 2009-03-16 11:15:49 +00:00
Sylvain Pion 2bdfec6cc0 Removal of remaining protect macros : those protecting other CGAL include files.
Done using the script Scripts/developer_scripts/cgal_conditional_include_remove.
2007-01-24 18:00:30 +00:00
Sylvain Pion fb8595b94e Cleanup : remove ancient CGAL_PROTECT_* macros.
It's the compiler's job to optimize preprocessing time.
2007-01-24 17:16:05 +00:00
Sylvain Pion 2a17eac977 - Remove unused argument name to remove warning in NDEBUG mode.
- Remove protect macros.
2006-03-17 15:50:13 +00:00
Laurent Saboret db6a8f948c Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
Laurent Saboret 1aad55d4cb Change CVS keywords to SVN style 2006-02-14 10:08:15 +00:00
Laurent Saboret 0a531b828d Move packages to trunk root 2006-02-14 08:58:19 +00:00