SteveNi Posted December 1, 2016 Share Posted December 1, 2016 Hi I need an array wich stores a range of numbers, starting at zero and ending at @numpt (total amount of points in a geometry). Is there a fast way to do this apart from filling the array in a for loop? Thanks Quote Link to comment Share on other sites More sharing options...
Aeoll Posted December 2, 2016 Share Posted December 2, 2016 What's wrong with a for-loop? It's quick and readable. You could do this but it's a lot uglier int pts[] = sort(nearpoints(0, 0, 1e10)); Quote Link to comment Share on other sites More sharing options...
SteveNi Posted December 2, 2016 Author Share Posted December 2, 2016 Noting against a for loop, just asking Thanks for the answer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.