Commit Graph

597 Commits

Author SHA1 Message Date
Sébastien Loriot eb505ae8b8 remove unused variable 2022-03-04 06:04:39 +01:00
Sébastien Loriot fef50179e0 allow ASCII files with many spaces on the first lines 2022-03-03 16:05:24 +01:00
Sébastien Loriot 733c8de28b do not try to read after the 80 char for the header
Since the next "word" to be read is a INT32 in binary mode, the char read
from it does not mean anything
2022-03-03 11:14:50 +01:00
Charrière Maxime 98ee8d7560
Add CGAL::Color operator< and return values 2022-02-25 14:54:48 +01:00
Andreas Fabri 8d3f4fb20b untabify 2022-02-02 07:43:47 +00:00
Andreas Fabri a5110493f8 Stream_support: Fix File_scanner_OFF::scan_facet() 2022-02-02 07:38:42 +00:00
Laurent Rineau 4c7719cd85 Merge pull request #6241 from sloriot/CGAL-warnings
Fix warnings
2022-01-21 14:40:16 +01:00
Laurent Rineau d33971d04a Merge pull request #6241 from sloriot/CGAL-warnings
Fix warnings
2022-01-21 14:38:40 +01:00
Sébastien Loriot 4fa136d17c fix maybe uninitialized warning 2022-01-17 09:07:09 +01:00
Sébastien Loriot 10b0af3092 rename macro since Named_function_parameter is part of STL_Extension 2022-01-13 14:43:34 +01:00
Sébastien Loriot 6cfcc37f49 fix again the extra endcond 2022-01-13 11:35:27 +01:00
Sébastien Loriot c169c41240 Merge remote-tracking branch 'maxGimeno/PMP-Example_of_new_mp_function-maxGimeno' into HEAD 2022-01-12 13:33:49 +01:00
Laurent Rineau 72b0a64a71 Merge pull request #5998 from afabri/Convex_hull-Index_triangle_set-GF
Convex_hull_3: output into a polygon soup
2022-01-12 12:24:10 +01:00
Sébastien Loriot 75b03e6c0a use_default_values() -> default_values() 2022-01-10 18:36:37 +01:00
Sébastien Loriot 6d3176e061 move Named_parameters class in STL_extension
helpers stay in BGL because it depends on BGL tags
2022-01-07 15:12:22 +01:00
Sébastien Loriot 9112001f33 fix doc 2022-01-06 19:11:54 +01:00
Sébastien Loriot f974016e73 replace overloads with default parameters (Stream_support) 2022-01-05 15:15:32 +01:00
Sébastien Loriot a6d9b99466 move macros in BaseDoxyfile 2022-01-04 11:10:09 +01:00
Laurent Rineau e481ec1a88 Merge pull request #6199 from albert-github/feature/bug_stream_support_endcond
Missing \endcond in Stream_support package
2022-01-03 16:25:59 +01:00
Sébastien Loriot 2a99174563 remove exe flag 2021-12-27 09:21:09 +01:00
albert-github a20887f1fa Missing \endcond in Stream_support package
We get the warning:
```
include/CGAL/IO/GOCAD.h:41: warning: Conditional section with label 'SKIP_IN_MANUAL' does not have a corresponding \endcond command within this file.
```

Added \endcond in Stream_support package at an in my opinion sensible place.
2021-12-27 07:34:06 +01:00
Andreas Fabri d721a0c15b Fix VC++ /W4 warning 2021-12-14 14:35:52 +00:00
Andreas Fabri 115fa5ab39 Remove Geomview from the manual and the demos 2021-12-14 14:01:21 +00:00
Laurent Rineau c199795670 Merge pull request #6104 from sloriot/Property_map-fix_id_map_mutable
restore mutable property of the pmap
2021-11-18 12:27:23 +01:00
Sébastien Loriot 32f40d82a7 workaround -Wmaybe-uninitialized
The init is legit as it prevents the reader to
do a useless loop and the writer to write
random number

In case of failing to read a face index or the number of faces,
the error bit in the stream is set anyway and the user has to
check it
2021-11-11 15:21:50 +01:00
Sébastien Loriot 4eb1464aed fix Identity_map mutability and fix CGAL code using it 2021-11-09 11:37:24 +01:00
Andreas Fabri 197c0a2471 code bugfix after test; doc bug fix: SequenceContainer -> RandomAccessContainer (also in Stream_support) 2021-10-05 08:40:47 +01:00
Laurent Rineau 7fc986f581 Merge pull request #5992 from afabri/CGAL-safe_functions-GF
Deal with memset, memcpy, fscanf...    and their safe equivalents
2021-09-29 11:46:44 +02:00
Laurent Rineau ad79d37410 Merge pull request #6014 from MaelRL/CGAL-IO_Clarify_binary_text-GF
CGAL IO: Clarify binary warning
2021-09-29 11:46:30 +02:00
Mael Rouxel-Labbé 5578bf43ff Misc cleaning 2021-09-27 15:35:40 +02:00
Mael Rouxel-Labbé c8cc0747fa Clarify binary warning 2021-09-27 15:33:42 +02:00
Andreas Fabri 3b7754f796 CGAL_TRACE() -> CGAL_TRACE_STREAM 2021-09-23 17:00:10 +02:00
Andreas Fabri b23b0b0d63 vfprintf -> vprintf_s 2021-09-23 17:00:10 +02:00
Sebastien Loriot 4610cf3c66
Merge pull request #5904 from sloriot/CGAL-remove_config_flags
Replace macros with inline functions and remove a config flag
2021-09-10 17:38:50 +02:00
Sébastien Loriot 98e471849b moving files from internal to PKG/internal 2021-08-26 11:33:39 +02:00
Sébastien Loriot 31a0557f58 add questions 2021-08-13 16:45:28 +02:00
Maxime Gimeno a3d1765ab4 Merge remote-tracking branch 'cgal/master' into CGAL-Clean_up_boost_versions-maxGimeno 2021-07-19 14:18:40 +02:00
Mael Rouxel-Labbé 01b2f0783a Harmonization of ASCII/BINARY/PRETTY formatting within io.h 2021-07-06 10:37:07 +02:00
Mael Rouxel-Labbé 78ff9185b3 Harmonize ASCII usage across all packages 2021-06-23 23:34:32 +02:00
Mael Rouxel-Labbé a34debc92b Uniformize os/is/s/i stream parameter name in Stream_support/io
+ remove extra backticks in NP doc
2021-06-23 23:32:06 +02:00
Laurent Rineau 2c4a5db3ce Merge pull request #5631 from GilesBathgate/STL_ext-fix_uncaught_exceptions_cleanup-GilesBathgate
Fix uncaught exceptions cleanup
2021-05-18 18:14:14 +02:00
Maxime Gimeno e6c767d5c9 Simplify the GNUC versions tests 2021-05-12 15:45:07 +02:00
Maxime Gimeno 393ae7dae6 Clean-up boost_version reqs 2021-05-12 15:03:53 +02:00
Sébastien Loriot 4e519a3c7a move documented IO functions in IO namespace 2021-05-05 13:15:37 +02:00
Sébastien Loriot 699c87daef fix IO namespace 2021-05-04 19:08:10 +02:00
Sébastien Loriot fbbf3863af remove extra IO 2021-05-04 18:25:16 +02:00
Sébastien Loriot f5e5ebe39b backward compatibility 2021-05-04 14:45:43 +02:00
Sébastien Loriot fb6f703b55 IO namespace for files in IO directories 2021-05-04 14:36:06 +02:00
Giles Bathgate 5ecd85248a Fix capitalisation of macro name. 2021-04-28 21:03:45 +01:00
Giles Bathgate 0ef8127c71 The CGAL_NOEXCEPT macro is no longer needed 2021-04-28 21:03:00 +01:00
Sebastien Loriot 076cb5fa13
Merge pull request #5573 from maxGimeno/Demo-Fixes-maxGimeno
Polyhedron Demo:  Trivial Warning
2021-04-17 10:53:46 +02:00
Maxime Gimeno ab492261fb obliterate the remaining comments in OFF writing. Good bye nice comments :( 2021-04-09 13:13:56 +02:00
Maxime Gimeno ae7559442a Remove operator>> and << from `File_header_OFF_extended`. 2021-03-10 13:54:09 +01:00
Mael Rouxel-Labbé 5efa544734 Merge remote-tracking branch 'cgal/master' into SDG-Fix_doc-GF 2021-02-22 17:19:40 +01:00
Maxime Gimeno 2dac31f36f Clean-up and fix doc 2021-02-05 14:14:11 +01:00
Maxime Gimeno df50c4cd0a replace WARNING: with NOTE: to avoid confusing the testsuite 2021-02-03 14:30:21 +01:00
Maxime Gimeno 7f537a19cb add missing headers 2021-02-03 08:59:54 +01:00
Maxime Gimeno 99d8d94631 add missing header 2021-02-02 09:36:38 +01:00
Maxime Gimeno 8e23769d8e Add missing overloads for set_default_stream_precision() 2021-01-29 09:28:51 +01:00
Maxime Gimeno 7bf9c14f72 Factorization 2021-01-28 10:01:52 +01:00
Maxime Gimeno 2d59464b2b remove os.precision(6) as it is the default. 2021-01-27 15:49:42 +01:00
Maxime Gimeno 41c823c083 replace default value of stream precision 2021-01-27 15:44:02 +01:00
Maxime Gimeno 7cf6a3bed0 Fix VRML_2 logic 2021-01-26 10:15:20 +01:00
Mael Rouxel-Labbé 1f45360d7a Merge remote-tracking branch 'cgal/master' into SDG-Fix_doc-GF 2021-01-26 09:05:24 +01:00
Maxime Gimeno 49f68654d6 WIP 2021-01-18 11:48:04 +01:00
Maxime Gimeno 5948bc846e Try to remove Filtered_kernel from the dependencies of BGL 2021-01-11 14:11:30 +01:00
Maxime Gimeno bcac80b15c Fixes and clean-up 2021-01-08 13:15:04 +01:00
Maxime Gimeno 00edae2400 More fixes 2020-12-10 12:55:04 +01:00
Maxime Gimeno f137b0e36d add misisng header 2020-12-10 09:13:21 +01:00
Maxime Gimeno 436a81b8f6 Restore old STL behavior (binary may start with `solid`" 2020-12-07 12:15:56 +01:00
Maxime Gimeno 8d9b58d2dd Fix read_STL() in binary_mode for ASCVII on Windows 2020-12-07 11:50:42 +01:00
Maxime Gimeno c76819d0a7 Check if a char is >0 before calling isdigit() because it asserts for negative numbers on windows. 2020-12-07 10:54:51 +01:00
Mael Rouxel-Labbé 6b87fe393d Fix various grammar issues 2020-12-05 11:11:33 +01:00
Maxime Gimeno d201bc7c96 Fix possible problems if a line is empty in scan_facet 2020-12-04 15:45:00 +01:00
Maxime Gimeno 70801754ce Extract the test of invalid NOFF because it is supposed to work for Polyhedron 2020-12-02 10:22:39 +01:00
Maxime Gimeno 7a568c6a0c Fmore fixes 2020-12-01 15:08:56 +01:00
Maxime Gimeno 37b5928df2 Fixes of warnings and errors 2020-12-01 11:33:35 +01:00
Giles Bathgate 9d442f26c7 Fix uncaught exception in VRML_2_ostream.h 2020-11-28 17:48:05 +00:00
Maxime Gimeno 2cd6d38764 Fix the conversion warning in OFF.h 2020-11-27 11:41:21 +01:00
Maxime GIMENO ff6238e478
Merge pull request #65 from GilesBathgate/fix-use-of-uninitialized-variable
Fix use of uninitialized variable in File_scanner_OFF.h
2020-11-27 09:18:55 +01:00
Sébastien Loriot 00488e7790 fix invalid init 2020-11-26 18:03:24 +01:00
Giles Bathgate 06a67b64a0 Fix use of uninitialized variable in File_scanner_OFF.h 2020-11-26 15:57:29 +00:00
Maxime Gimeno 54f89bc615 initialize data in File_writer_VRML_2 2020-11-26 15:52:45 +01:00
Maxime Gimeno fe48ffea42 Don't use FT() in Normal creation because Kernels based on Exact_integer can't construct from double. 2020-11-26 15:35:24 +01:00
Maxime Gimeno abed28fc12 fix warnings 2020-11-26 14:44:31 +01:00
Maxime Gimeno 512975b354 Finish fixing STL. 2020-11-26 10:33:35 +01:00
Maxime Gimeno 79977c45d8 WIP fix STL 2020-11-25 16:24:30 +01:00
Maxime Gimeno 277b8cc74b Fix OFF_reading 2020-11-25 13:40:19 +01:00
Andreas Fabri b16249b99a WIP to avoid seekg/tellg 2020-11-25 07:59:16 +00:00
Maxime Gimeno e76cc00c4f Fix reading of 0#red 2020-11-23 11:23:09 +01:00
Maxime Gimeno 493f034fda Fix some warnings 2020-11-23 11:06:59 +01:00
Maxime Gimeno 016adaa2a9 fix msvc2015 error 2020-11-18 12:58:15 +01:00
Maxime Gimeno 9f496e3e9d Fixes 2020-11-18 12:48:38 +01:00
Maxime Gimeno 3b70343590 Merge remote-tracking branch 'cgal/master' into CGAL_IO-maxGimeno 2020-11-16 16:19:43 +01:00
Maxime Gimeno 753982443c Fix 3mf I/O and tests 2020-10-27 12:38:10 +01:00
Maxime Gimeno 0149977558 Fix precision warning and add missinf ifdefs for polyhedron_iostream 2020-10-23 09:10:53 +02:00
Simon Giraudot 80a5deb8e9 Merge remote-tracking branch 'mine/Classification-Simpler_IO_for_ETHZ_Random_forest-GF' into Classification-Simpler_IO_for_ETHZ_Random_forest-GF 2020-10-19 07:59:47 +02:00
Mael Rouxel-Labbé 4b28101397 Misc IO fixes 2020-10-14 21:46:18 +02:00
Mael Rouxel-Labbé 5f1821f173 Fix constness loss 2020-10-14 19:26:15 +02:00
Mael Rouxel-Labbé 7922f048a4 Fixed VRML/Inventor stream API (need to be compatible with the generic writer) 2020-10-14 19:25:48 +02:00
Mael Rouxel-Labbé f963191842 Fix some writers not meeting the generic API requirements 2020-10-14 15:32:59 +02:00
Mael Rouxel-Labbé 0583a4862e Add precision support to Geomview streams 2020-10-14 15:32:27 +02:00
Mael Rouxel-Labbé 8e6f695e76 Fix issues in Inventor/VRML writers 2020-10-14 11:03:26 +02:00
Mael Rouxel-Labbé 1ef61f1a5a Fix oformat'ing doubles 2020-10-13 18:13:01 +02:00
Mael Rouxel-Labbé 550317e1fb Fixes for the polygon soup OBJ reader 2020-10-13 18:12:12 +02:00
Mael Rouxel-Labbé ec71a79fdf Fix some missing flushers 2020-10-13 18:02:28 +02:00
Maxime Gimeno 6c83e73cbc use std::int32_t 2020-10-08 15:29:21 +02:00
Simon Giraudot 30422d0ad8 Fix windows warnings 2020-10-06 13:12:26 +02:00
Maxime Gimeno 3ec968d0df Add signed version for PLY list type test 2020-10-06 11:26:21 +02:00
Simon Giraudot f5966e7f7f Add missig include 2020-10-06 08:31:28 +02:00
Simon Giraudot 0878f3ad8a Fix assertion 2020-10-05 10:44:02 +02:00
Simon Giraudot 7599bbede7 Better names for 32b size_t IO 2020-10-01 13:53:02 +02:00
Simon Giraudot 3655679431 Use cstdint and add useful variants of binary IO 2020-10-01 13:25:55 +02:00
Mael Rouxel-Labbé 4694a48913 Merge remote-tracking branch 'cgal/master' into CGAL_IO-maxGimeno 2020-09-22 11:35:25 +02:00
oboes 401d266a07 Fix error in HSV/RGB color conversion 2020-08-23 05:55:48 +02:00
Sébastien Loriot a13b96220f Merge remote-tracking branch 'cgal/releases/CGAL-5.0-branch' 2020-08-07 06:41:47 +02:00
Sébastien Loriot c8b73c9f01 Merge remote-tracking branch 'cgal/releases/CGAL-4.14-branch' into HEAD 2020-08-07 06:40:23 +02:00
Sébastien Loriot 4a1ad0c756 remove incorrect license include statement 2020-08-06 11:45:23 +02:00
Mael Rouxel-Labbé c14198a992 IO doc fixes 2020-08-04 17:55:21 +02:00
Mael Rouxel-Labbé 00ca0211e1 IO documentation fixes 2020-08-04 15:47:56 +02:00
Mael 9bd594bf99
Fix is_ascii() 2020-08-03 12:03:33 +02:00
Mael Rouxel-Labbé 1d016ecc7e IO doc fixes 2020-07-28 15:38:19 +02:00
Mael Rouxel-Labbé 0d66e19361 IO documentation fixes
See @sloriot's review:

https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Polgyon_soup_mesh_IO/2nd_round/Answer_to_review

(+ some commits before and after this one)
2020-07-24 17:06:00 +02:00
Mael Rouxel-Labbé 2bdb63b1ae Use "integer type" and not "std::size_t" for 3MF I/O 2020-07-24 10:49:56 +02:00
Mael Rouxel-Labbé 47955af9b4 Polygon > Triangle in 3MF I/O 2020-07-24 10:10:52 +02:00
Mael Rouxel-Labbé e6847245c2 `value type` --> `value_type` 2020-07-24 09:55:22 +02:00
Mael Rouxel-Labbé 2f0f61e104 Rephrase warning about std::ios::binary + add missing (LAS - always binary) 2020-07-24 09:40:13 +02:00
Mael Rouxel-Labbé 6189e23817 Fix parameter name / documentation inconsistency 2020-07-24 09:24:36 +02:00
Mael Rouxel-Labbé 6acac6907a Add a note about letter case in generic I/O functions 2020-07-24 09:23:54 +02:00
Mael Rouxel-Labbé 69068ba28c Some more binary/ASCII fixes 2020-07-21 11:44:18 +02:00
Mael Rouxel-Labbé 59a375b566 Fix missing includes 2020-07-17 18:07:13 +02:00
Mael Rouxel-Labbé 9a485ec975 Update some file headers 2020-07-17 17:59:31 +02:00
Mael Rouxel-Labbé 26c930bc20 Uniformize whether std::string or const char* is used in the doc 2020-07-17 15:16:32 +02:00
Mael Rouxel-Labbé 6d6d959d4d Enhance doc for generic I/O functions 2020-07-17 13:37:37 +02:00
Mael Rouxel-Labbé f3659c5d96 Switch 3MF to bool return type and clarify \return doc for IO functions 2020-07-17 13:19:18 +02:00
Mael Rouxel-Labbé 09ee52fa1b Remove obsolete warning about boost version (only 1.62+ is supported now) 2020-07-17 11:57:01 +02:00
Mael Rouxel-Labbé 2d51d86787 Make verbose a NP instead of a parameter + various fixes in CGAL 2020-07-16 20:22:26 +02:00
Mael Rouxel-Labbé 0fd8bbf920 Re-add doc of operator<<(stream, Class) in io.h 2020-06-26 16:21:09 +02:00
Mael Rouxel-Labbé ae4c2aaa9e IO doc fixes 2020-06-26 16:08:02 +02:00
Mael Rouxel-Labbé 50e3a838f3 Compilation fixes 2020-06-25 18:20:52 +02:00
Mael Rouxel-Labbé cc523c09d2 Fix missing overloads + document stream_precision/use_binary in SS/IO 2020-06-25 15:16:34 +02:00
Mael Rouxel-Labbé 26355e2e32 Uniformize capital / third person usage of \brief 2020-06-25 15:13:47 +02:00
Mael Rouxel-Labbé d5d8cca92b Various IO compilation fixes 2020-06-25 12:02:01 +02:00
Mael Rouxel-Labbé 31044f8e1e Fix not opening binary input with ios::binary when reading/writing PLY 2020-06-24 18:26:16 +02:00
Mael Rouxel-Labbé a5b167ed55 Fix not opening ifstream with ios::binary when use_binary is chosen 2020-06-24 17:41:55 +02:00
Mael Rouxel-Labbé 6d6dc0c956 Fix a number of compilation issues 2020-06-24 17:41:20 +02:00
Mael Rouxel-Labbé 26ae0d2b8c Misc compilation fixes 2020-06-23 19:11:55 +02:00
Mael Rouxel-Labbé 3e057e4344 Stream support IO doc improvements (wip) 2020-06-23 19:03:00 +02:00
Mael Rouxel-Labbé 8cab8d3a21 Exclude string from is_Range to avoid IO ambiguities 2020-06-23 12:51:15 +02:00
Mael Rouxel-Labbé 944697baa8 Misc fixes 2020-06-23 12:51:05 +02:00