mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 00:31:11 -06:00
Incomplete work for using Boost.Polygon to compute medial axis
This commit is contained in:
parent
11f065ca5e
commit
bf91f3096a
1650 changed files with 307148 additions and 9 deletions
40
xs/src/boost/random/detail/generator_seed_seq.hpp
Normal file
40
xs/src/boost/random/detail/generator_seed_seq.hpp
Normal file
|
@ -0,0 +1,40 @@
|
|||
/* boost random/mersenne_twister.hpp header file
|
||||
*
|
||||
* Copyright Jens Maurer 2000-2001
|
||||
* Copyright Steven Watanabe 2010
|
||||
* Distributed under the Boost Software License, Version 1.0. (See
|
||||
* accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* See http://www.boost.org for most recent version including documentation.
|
||||
*
|
||||
* $Id: generator_seed_seq.hpp 71018 2011-04-05 21:27:52Z steven_watanabe $
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED
|
||||
#define BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED
|
||||
|
||||
namespace boost {
|
||||
namespace random {
|
||||
namespace detail {
|
||||
|
||||
template<class Generator>
|
||||
class generator_seed_seq {
|
||||
public:
|
||||
generator_seed_seq(Generator& g) : gen(&g) {}
|
||||
template<class It>
|
||||
void generate(It first, It last) {
|
||||
for(; first != last; ++first) {
|
||||
*first = (*gen)();
|
||||
}
|
||||
}
|
||||
private:
|
||||
Generator* gen;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue