Commit c9137829 by LEFEBVREJP email

### Starting work on the Chaikins method for curve creation.

parent cc970dac
 ... ... @@ -4,6 +4,8 @@ SET(SOURCE ordering.cc ) SET(HEADERS chaikins.hh chaikins.i.hh ordering.hh marchingsquares.hh marchingsquares.i.hh ... ...
 #ifndef RADIX_RADIXALGORITHM_CHAIKINS_HH_ #define RADIX_RADIXALGORITHM_CHAIKINS_HH_ #include #include #include #include #include #include #include #include #include "radixbug/bug.hh" namespace radix { template std::vector> chaikins( const std::vector>& control_polygon, std::function< std::pair(const std::pair& point)> translate = [](const std::pair& point) { return std::make_pair(data_type(point.first), data_type(point.second)); }, size_t sequence = 1); } // namespace radix /** Include implementation file */ #include "radixalgorithm/chaikins.i.hh" #endif /** RADIX_RADIXALGORITHM_CHAIKINS_HH_ */
 #include #include #include "radixalgorithm/chaikins.hh" #include "radixbug/bug.hh" namespace radix { template std::vector> chaikins( const std::vector>& control_polygon, std::function< std::pair(const std::pair& point)> translate, size_t sequence) { std::vector> result(control_polygon.size() * (sequence + 1)); for (size_t si = 0; si < sequence; ++si) { } return result; } } // namespace radix
 #ifndef RADIX_RADIXALGORITHM_MARCHINGSQUARES_HH_ #define RADIX_RADIXALGORITHM_MARCHINGSQUARES_HH_ #include #include #include #include ... ... @@ -16,8 +17,8 @@ template class MarchingSquares { private: std::vector dx; std::vector dy; std::array dx; std::array dy; protected: std::vector mData; ... ...