From 66f8ba7f06b9369276e6210f756b075591efa6fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Apr 2019 20:55:47 +0200 Subject: Support using any array-like type for points --- bin/chilbert_obj.cpp | 2 +- bin/chilbert_svg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/chilbert_obj.cpp b/bin/chilbert_obj.cpp index 85fe95a..0f31fbd 100644 --- a/bin/chilbert_obj.cpp +++ b/bin/chilbert_obj.cpp @@ -39,7 +39,7 @@ main(int argc, char** argv) // Vertices for (uint64_t i = 0; i < num_points; ++i) { std::array point; - chilbert::index_to_coords(point.data(), 16, 3, i); + chilbert::index_to_coords(point, 16, 3, i); printf("v %u %u %u\n", point[0], point[1], point[2]); } diff --git a/bin/chilbert_svg.cpp b/bin/chilbert_svg.cpp index 1151a1a..dd4a3d4 100644 --- a/bin/chilbert_svg.cpp +++ b/bin/chilbert_svg.cpp @@ -52,7 +52,7 @@ main(int argc, char** argv) // One polyline through all vertices for (uint64_t i = 0; i <= num_points; ++i) { std::array point; - chilbert::index_to_coords(point.data(), 32, 2, i); + chilbert::index_to_coords(point, 32, 2, i); printf("%u,%u ", point[0], point[1]); } -- cgit v1.2.1