Commit Graph

179 Commits

Author SHA1 Message Date
Maxime Gimeno a7282912a0 Add a random_points_generator on a range of triangles, and an exemple for it. 2016-09-28 10:48:08 +02:00
Maxime Gimeno fad8535621 Remove useless template Point_3 in Random_points_on_triangle_mesh_3. 2016-09-28 10:48:08 +02:00
Maxime Gimeno c013d9d292 Clean-up
- Replace Mesh by TriangleMesh
- update changes.html and doc sections
- remove useless .off in examples
2016-09-28 10:48:07 +02:00
Maxime Gimeno 4754094f5f Make working tests. 2016-09-28 10:48:07 +02:00
Maxime Gimeno c7eb806329 Make the VertexPointMap editable 2016-09-28 10:48:07 +02:00
Maxime Gimeno 8469c45336 Enhance Prevent_deref API and use it. 2016-09-28 10:48:07 +02:00
Sébastien Loriot fd39972166 add method to access the sum of weights 2016-09-28 10:46:43 +02:00
Maxime Gimeno ee6731e625 Fix generator on triangle mesh 3 2016-09-28 10:45:47 +02:00
Maxime Gimeno 1d5d17cfd8 Clean-up 2016-09-28 10:45:47 +02:00
Maxime Gimeno 19a7386164 Clean-up 2016-09-28 10:45:47 +02:00
Maxime Gimeno 3eb1f4ca69 Clean-up
- Clean-up
- Moved Prevent_deref to CGAL/iterator.h
2016-09-28 10:45:46 +02:00
Maxime Gimeno 7a1c2037fd Implementation and changes
- Change Generic_random_point_generator to use a Functor instead of a property_map
- Change Random_points_on_triangle_mesh_3 to use a functor wrapping around a PMAP instead of the PMAP
- Implement a random point generator on a Triangulation_2
- Implement a random point generator in and on tetrahedral meshes.

Conflicts:
	Generator/include/CGAL/point_generators_3.h
	Generator/test/Generator/generic_random_test.cpp
2016-09-28 10:45:46 +02:00
Maxime Gimeno ce9d373760 Implementation and changes
- Change Generic_random_point_generator to use a Functor instead of a property_map
- Change Random_points_on_triangle_mesh_3 to use a functor wrapping around a PMAP instead of the PMAP
- Implement a random point generator on a Triangulation_2
2016-09-28 10:45:45 +02:00
Maxime Gimeno 7bdd704de2 Implement convenience function mor FaceListGraphs 2016-09-28 10:45:45 +02:00
Sébastien Loriot 8665ef7026 clean-up 2016-09-28 10:45:45 +02:00
Maxime Gimeno 709f3984c1 Implements a random point generator for FaceGraphLists, and an unfinished test. 2016-09-28 10:45:44 +02:00
Clement Jamin 9a61b23b55 Use get_default_random() instead of default_random 2016-03-09 10:35:21 +01:00
Sébastien Loriot 15d2bbcf2a avoid ambiguous calls 2016-02-04 17:36:15 +01:00
Andreas Fabri 52f8129579 replace all std::bind with boost::bind 2016-02-04 08:59:38 +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
Sébastien Loriot 3f6c6b3369 Merge branch 'Generator-more_point_generators-pmachado' of git://github.com/sloriot/cgal into sloriot-Generator-more_point_generators-pmachado
Conflicts:
	Generator/doc/Generator/Generator.txt
	Generator/doc/Generator/PackageDescription.txt
	Generator/doc/Generator/examples.txt
	Installation/changes.html
2015-04-15 16:25:34 +02: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
Remy Thomasse 33e5f52486 fix iterator bug in convex_hull_in_disc_2.h
trivial fix for master
2015-01-27 16:03:01 +01:00
Remy Thomasse 54adc78e2b bug windows 2015-01-06 16:53:49 +01:00
Remy Thomasse b5047c9bb8 try to fix some warnings 2015-01-06 16:53:48 +01:00
Remy Thomasse fe929dee85 (try to) fix the windows bug 2015-01-06 16:53:48 +01:00
Remy Thomasse b3514854de compatibility old version of boost 2015-01-06 16:53:48 +01:00
Remy Thomasse 1e587c8177 petit oubli 2015-01-06 16:53:48 +01:00
Remy Thomasse 2b9bfcf337 Left_turn_2 no longer needed 2015-01-06 16:53:48 +01:00
Remy Thomasse 5a876394d9 documentation+concept RandomConvexHullTraits_2 2015-01-06 16:50:14 +01:00
Remy Thomasse 57d4dbbb2a Add Traits, clean the code 2015-01-06 16:50:14 +01:00
Remy Thomasse 03ef4e6789 modifications OutputIterator 2015-01-06 16:50:14 +01:00
Remy Thomasse 616178e80f name change, typos 2015-01-06 16:50:13 +01:00
Remy Thomasse 86cf507775 add size_t, FT instead of long and double, ifndef Q_MOC_RUN trick to compile the demo without trouble (pb with boost headers and Qt) 2015-01-06 16:50:13 +01:00
Remy Thomasse 1d82acee46 demo generator 2015-01-06 16:50:13 +01:00
Remy Thomasse 264e8ccb25 header random convex polygon 2015-01-06 16:50:12 +01:00
Guillaume Damiand ef550fd3bb Ok for first version. 2014-11-14 17:22:06 +01:00
Guillaume Damiand ebc4300334 Header only for random.cpp.
For the header only version, the global variable default_random no more exist => we need to replace all occurences of default_random by a call to the global function get_default_random().
As usual, no modification for the non header only version.
2014-11-14 14:20:26 +01:00
Pedro Machado Manhaes de Castro ef2d934007 Adding new authors to the files. 2013-10-22 11:24:58 -03:00
Pedro Machado Manhaes de Castro 386fe6eb09 stable stuffs done in gsoc2013, random points in triangle_2, triangle_3, and tetrahedron_3 2013-10-04 11:59:03 -03:00
Andreas Fabri 6c547e5663 Mainly added includes 2013-09-13 22:24:30 +02:00
Sébastien Loriot 82b2ebc865 apply the cpp0x namespace renaming in all files 2012-12-19 11:33:17 +01:00
Olivier Devillers 942b88ad35 merge from next 2012-09-21 13:09:18 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Samuel Hornus 165ce1d043 templatized the Combination_enumerator class and document the concept for the template parameter. 2012-07-25 11:26:17 +00:00
Samuel Hornus 0296c21ae5 added the Combination_enumerator class for enumerating subsets of an integer range 2012-07-23 14:46:27 +00:00
Laurent Rineau 5b5dd33848 merge changes from next 2012-01-09 12:33:39 +00:00
Olivier Devillers 778714a341 remove random_points_in_iso_box_d 2011-10-20 13:56:44 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +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 f9b288db90 Merged branch ^/branches/features/gsoc2011-copy_n-pmoeller.
Small feature page: https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Replace_copy_n
2011-08-26 14:34:10 +00:00
Sébastien Loriot 0ebdccfa4e update URL and Id tag 2011-03-02 14:59:51 +00:00
Sébastien Loriot 526e9e3d9b remove warning 2011-02-23 09:17:57 +00:00
Laurent Rineau f508c60d2d Merge the feature Generator_d in trunk.
"Add d-dim generators."

Author is Olivier Devillers.

See https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Generator_d

See detailled log in 
  /branches/experimental-packages/Generator_d@59316
and later in:
  /branches/candidate-packages/Generator@60065
2010-12-02 14:12:20 +00:00
Andreas Fabri 1c03615a5d Add a bug report file for random_polygon_2, so that we can fix it later 2010-12-02 09:45:03 +00:00
Andreas Fabri 97f2ff7ef8 Add a static_cast to avoid float vs double warnings by VC++ 2010-09-27 08:56:25 +00:00
Andreas Fabri b34d714f9b int -> size_t 2010-09-23 19:49:27 +00:00
Andreas Fabri 06ecd18ec7 cleanup of (std::max) workaround 2010-09-10 09:47:56 +00:00
Andreas Fabri 67ad0c654a get_int -> uniform_int for 64bits ; static_cast to avoid warning 2010-09-10 09:40:47 +00:00
Andreas Fabri 9ac42a9ce6 int -> ptrdiff_t 2010-09-08 09:16:31 +00:00
Andreas Fabri 4d9f48a578 size_t -> ptrdiff_t 2010-06-25 14:12:43 +00:00
Andreas Fabri 163a557f18 int -> size_type/std::size_t 2010-06-22 08:46:38 +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
Olivier Devillers 61d37a420b OK, previous version was correct, and indeed better.
Thus I restore it, AND I use it also for points IN sphere
2010-05-26 07:24:15 +00:00
Olivier Devillers 40fb2ad861 Previous version of Random_points_in_sphere_3 was not
generating a uniform distribution on the sphere
(it was uniform on z and uniform on alpha and compute r
such that point with cylindrical coordinates alpha r z is on the sphere)
2010-05-25 13:55:26 +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
Sylvain Pion 6cc542446d Fix some typos in the protect macro names.
Use a form "#ifndef" more consistently.

The idea is to automatize most of the verification of the consistency
in the names used in the #ifndef and the following #define using a simple :

grep -r -m 1 '#ifndef' */include/CGAL  | grep CGAL_ | cut -d' ' -f2 | sort > ifndef.macros
grep -r -m 1 '#define' */include/CGAL  | grep CGAL_ | cut -d' ' -f2 | sort > define.macros
diff ifndef.macros define.macros
2009-04-08 11:54:51 +00:00
Andreas Fabri beb6b540fc Added generator for demos 2008-09-22 08:09:22 +00:00
Sylvain Pion c24c588aa5 Include <CGAL/algorithm.h> instead of <CGAL/copy_n.h>. 2008-08-12 12:58:18 +00:00
Sylvain Pion 60d068d880 Use CGAL::centroid() instead of a duplicated code. 2008-04-15 16:03:13 +00:00
Sylvain Pion ba9af5f969 Use std::copy, and some other cleanups. 2008-03-27 22:59:00 +00:00
Sylvain Pion 1af16e27f4 Get rid of CGAL_REP_CLASS_DEFINED 2008-01-03 19:04:16 +00:00
Sylvain Pion 4da7713aa8 Remove obsolete config flag CGAL_CFG_NO_STDC_NAMESPACE and rename
its dependant macro CGAL_CLIB_STD to "std".
2007-08-08 15:59:25 +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
Andreas Fabri 83ce38c57f fix min/max problem 2006-08-03 03:37:56 +00:00
Ron Wein 3ec3098b2f Fixed the include files. 2006-06-04 15:39:42 +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 1a3c0052e5 Move packages to trunk root 2006-02-14 08:58:15 +00:00