Commit Graph

62 Commits

Author SHA1 Message Date
Sébastien Loriot 6b338eeb1f improve the name of projects in cmake scripts of examples 2016-09-08 00:02:55 +02:00
Sébastien Loriot 4c29bf1b44 CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR 2016-03-24 16:33:46 +01:00
Sébastien Loriot 881e4d3199 request Core only in examples, tests and demos when really needed 2016-03-07 22:36:57 +01:00
Sébastien Loriot 2d191d6651 commit CMakeLists.txt for all examples and tests 2016-03-07 17:39:36 +01:00
Sébastien Loriot 8601e5ef0f move Kinetic examples 2015-08-26 17:27:09 +02:00
Laurent Rineau 269ae1ca61 Fix the uses of std::basic_ios::bad(), and use fail() instead.
bad() implies fail() but std::basic_ios::operator! is actually equivalent
to std::basic_ios::fail(), not bad().

For example,
    std::ifstream is(argv[1]);
    if (is.bad()) {
is probably wrong because, in case the file does not exist, only the failbit it set,
and not the badbit.

Other example:
   double x;
   is >> x;
If the stream 'is' does not contains a string that can represent a double,
then failbit is set (and maybe the eofbit if the stream is actually too
short), but not the badbit.

bad() can be used, in case fail() returned true, to discriminate between a
I/O error and a logical error.

See:
  http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool
  http://en.cppreference.com/w/cpp/io/ios_base/iostate
2013-12-12 16:13:40 +01:00
Laurent Rineau 75067bd072 Fix several I/O issues with Apple-clang-3.2 and its libc++ 2013-10-11 16:12:02 +02:00
Laurent Rineau d19578725b Fix warnings 2013-02-07 18:15:23 +01:00
Sylvain Pion e0a2006631 Remove semi-colon after main() function definition. 2009-12-12 14:32:20 +00:00
Daniel Russel a86384102a fix bad data path 2009-01-05 19:46:44 +00:00
Andreas Fabri 2989bd1953 Renamed examples in order to get unique names 2008-12-12 10:54:06 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Daniel Russel 09bed49916 odds and sods 2007-06-11 22:36:51 +00:00
Daniel Russel 7d9a1eaf8c libCGAL builds 2007-06-10 23:46:47 +00:00
Daniel Russel ccc339c225 remove #defines 2007-03-28 05:42:39 +00:00
Daniel Russel 953689b7dc test for VC before disabling warning 2007-03-26 22:28:18 +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
Daniel Russel 87d15b9189 restored original 2007-02-13 19:55:09 +00:00
Daniel Russel 741b21116d disabled some warnings and fixed walking off start of std::list 2007-02-13 19:27:34 +00:00
Daniel Russel 238f8df4b4 minor tweaks 2007-01-30 02:06:49 +00:00
Daniel Russel 5e30af4a00 missing return in Sturm 2007-01-26 01:53:00 +00:00
Daniel Russel d18128c6d1 Oops, missed updating this one 2007-01-25 01:58:17 +00:00
Daniel Russel deb0ad36b8 added random check 2007-01-24 19:11:31 +00:00
Daniel Russel 6cc8fa0fbc examples now compile 2007-01-24 17:24:32 +00:00
Daniel Russel e28894d30a cleaned up names in KK and FK 2007-01-22 18:36:00 +00:00
Daniel Russel 40a247c721 hid things 2007-01-20 21:44:11 +00:00
Daniel Russel 43cf28218c core working 2007-01-20 21:39:01 +00:00
Daniel Russel 02ccc9c36f before trying to clean things up for new number type stuff 2007-01-18 23:26:44 +00:00
Daniel Russel 786d732925 about to add hybrid moveall/static method 2006-11-11 22:41:08 +00:00
Daniel Russel fa295ec3cd Newton working well and everything else working. Will remove old solver to clean things up 2006-11-06 23:57:15 +00:00
Daniel Russel bb404b1b71 only check until motions change 2006-10-18 16:51:59 +00:00
Daniel Russel af905f81a2 updating works well, about try remove locking of points 2006-10-18 00:39:13 +00:00
Andreas Fabri 36e412ce38 Suppress warning for MSVC about 'using this' 2006-09-27 20:14:48 +00:00
Daniel Russel d8a7da8a8c minor changes 2006-07-24 15:53:06 +00:00
Daniel Russel cf0ce01b84 added some more interesting (degenerate) curves 2006-07-13 14:50:33 +00:00
Andreas Fabri 64241fc586 changed .C to .cpp in examples 2006-07-09 19:22:31 +00:00
Daniel Russel fd5f3028bf trivial fixes for sunpro 2006-05-07 04:25:55 +00:00
Daniel Russel 9d4d76bc27 shortened insert_event runtime 2006-05-04 08:47:04 +00:00
Daniel Russel 54f519401e moved a bunch of examples 2006-04-10 14:42:19 +00:00
Daniel Russel 8a78c98d49 updated Two_list to avoid warning about infinity 2006-03-22 19:45:27 +00:00
Daniel Russel 34ee45bf0a updated data to have spaces around , 2006-03-22 18:24:34 +00:00
Daniel Russel f341d29339 reduced output 2006-03-22 18:02:07 +00:00
Daniel Russel d6d5c6f421 why won't it commit? 2006-03-22 16:08:10 +00:00
Daniel Russel 7633a5cb7f oops, forgot to check it in 2006-03-22 16:05:39 +00:00
Daniel Russel c1af374fff extra typename 2006-03-21 22:03:53 +00:00
Daniel Russel acda4208f4 moved generate to demo 2006-03-21 02:00:59 +00:00