How to tile a sphere with points at an even density?











up vote
4
down vote

favorite
4












I'm writing a bit of code to plot twitter usage across the globe. To do this, I'm searching for users within n km of a certain longitude/latitude (a circular area), at many different lat/lon coordinates. The fact that this is lat/lon coordinates is irrelevant, since this portion is done in cartesian coordinates.



I need to tile the earth (a sphere in this model) with m points, which will serve as the centre of a search radius. The location of each point (x y z) is subject to the constraint that it cannot be within m km of any other point (x' y' z'), so that the search radii do not overlap. Any thoughts? It seems like the kind of problem that has a perfect solution.










share|cite|improve this question


























    up vote
    4
    down vote

    favorite
    4












    I'm writing a bit of code to plot twitter usage across the globe. To do this, I'm searching for users within n km of a certain longitude/latitude (a circular area), at many different lat/lon coordinates. The fact that this is lat/lon coordinates is irrelevant, since this portion is done in cartesian coordinates.



    I need to tile the earth (a sphere in this model) with m points, which will serve as the centre of a search radius. The location of each point (x y z) is subject to the constraint that it cannot be within m km of any other point (x' y' z'), so that the search radii do not overlap. Any thoughts? It seems like the kind of problem that has a perfect solution.










    share|cite|improve this question
























      up vote
      4
      down vote

      favorite
      4









      up vote
      4
      down vote

      favorite
      4






      4





      I'm writing a bit of code to plot twitter usage across the globe. To do this, I'm searching for users within n km of a certain longitude/latitude (a circular area), at many different lat/lon coordinates. The fact that this is lat/lon coordinates is irrelevant, since this portion is done in cartesian coordinates.



      I need to tile the earth (a sphere in this model) with m points, which will serve as the centre of a search radius. The location of each point (x y z) is subject to the constraint that it cannot be within m km of any other point (x' y' z'), so that the search radii do not overlap. Any thoughts? It seems like the kind of problem that has a perfect solution.










      share|cite|improve this question













      I'm writing a bit of code to plot twitter usage across the globe. To do this, I'm searching for users within n km of a certain longitude/latitude (a circular area), at many different lat/lon coordinates. The fact that this is lat/lon coordinates is irrelevant, since this portion is done in cartesian coordinates.



      I need to tile the earth (a sphere in this model) with m points, which will serve as the centre of a search radius. The location of each point (x y z) is subject to the constraint that it cannot be within m km of any other point (x' y' z'), so that the search radii do not overlap. Any thoughts? It seems like the kind of problem that has a perfect solution.







      geometry tiling






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jul 2 '12 at 19:05









      RyanGrannell

      1214




      1214






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          8
          down vote













          The problem of distributing points on a sphere (as opposed to a circle) does not have a neat solution. There is a lot of information online, but you'll have to see for yourself what you can use. (There is also a common confusion between uniform random distribution and evenly-spaced distribution, which are very different things).




          • Spherical codes

          • Tammes problem

          • Thomson problem

          • nice pictures

          • some code






          share|cite|improve this answer





















          • thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
            – RyanGrannell
            Jul 23 '12 at 18:23




















          up vote
          2
          down vote













          Your question is a bit ambiguous. You seem to have the answer for uniform random distribution which are mostly approximations.



          But if you want exact, evenly-spaced distributions (without including the malevolent varient of n=1), there are only (and exactly only) 6 solutions for a 3-sphere.



          These correspond to the vertices of the 5 Platonic solids + the solution of 2 points on opposite sides of each other.






          share|cite|improve this answer























            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f165819%2fhow-to-tile-a-sphere-with-points-at-an-even-density%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            8
            down vote













            The problem of distributing points on a sphere (as opposed to a circle) does not have a neat solution. There is a lot of information online, but you'll have to see for yourself what you can use. (There is also a common confusion between uniform random distribution and evenly-spaced distribution, which are very different things).




            • Spherical codes

            • Tammes problem

            • Thomson problem

            • nice pictures

            • some code






            share|cite|improve this answer





















            • thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
              – RyanGrannell
              Jul 23 '12 at 18:23

















            up vote
            8
            down vote













            The problem of distributing points on a sphere (as opposed to a circle) does not have a neat solution. There is a lot of information online, but you'll have to see for yourself what you can use. (There is also a common confusion between uniform random distribution and evenly-spaced distribution, which are very different things).




            • Spherical codes

            • Tammes problem

            • Thomson problem

            • nice pictures

            • some code






            share|cite|improve this answer





















            • thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
              – RyanGrannell
              Jul 23 '12 at 18:23















            up vote
            8
            down vote










            up vote
            8
            down vote









            The problem of distributing points on a sphere (as opposed to a circle) does not have a neat solution. There is a lot of information online, but you'll have to see for yourself what you can use. (There is also a common confusion between uniform random distribution and evenly-spaced distribution, which are very different things).




            • Spherical codes

            • Tammes problem

            • Thomson problem

            • nice pictures

            • some code






            share|cite|improve this answer












            The problem of distributing points on a sphere (as opposed to a circle) does not have a neat solution. There is a lot of information online, but you'll have to see for yourself what you can use. (There is also a common confusion between uniform random distribution and evenly-spaced distribution, which are very different things).




            • Spherical codes

            • Tammes problem

            • Thomson problem

            • nice pictures

            • some code







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jul 2 '12 at 20:49







            user31373



















            • thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
              – RyanGrannell
              Jul 23 '12 at 18:23




















            • thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
              – RyanGrannell
              Jul 23 '12 at 18:23


















            thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
            – RyanGrannell
            Jul 23 '12 at 18:23






            thanks for the answer, the links were really useful. after playing around with a few techniques, the most efficient method seems to be the iterative method in the last link. Thanks again :)
            – RyanGrannell
            Jul 23 '12 at 18:23












            up vote
            2
            down vote













            Your question is a bit ambiguous. You seem to have the answer for uniform random distribution which are mostly approximations.



            But if you want exact, evenly-spaced distributions (without including the malevolent varient of n=1), there are only (and exactly only) 6 solutions for a 3-sphere.



            These correspond to the vertices of the 5 Platonic solids + the solution of 2 points on opposite sides of each other.






            share|cite|improve this answer



























              up vote
              2
              down vote













              Your question is a bit ambiguous. You seem to have the answer for uniform random distribution which are mostly approximations.



              But if you want exact, evenly-spaced distributions (without including the malevolent varient of n=1), there are only (and exactly only) 6 solutions for a 3-sphere.



              These correspond to the vertices of the 5 Platonic solids + the solution of 2 points on opposite sides of each other.






              share|cite|improve this answer

























                up vote
                2
                down vote










                up vote
                2
                down vote









                Your question is a bit ambiguous. You seem to have the answer for uniform random distribution which are mostly approximations.



                But if you want exact, evenly-spaced distributions (without including the malevolent varient of n=1), there are only (and exactly only) 6 solutions for a 3-sphere.



                These correspond to the vertices of the 5 Platonic solids + the solution of 2 points on opposite sides of each other.






                share|cite|improve this answer














                Your question is a bit ambiguous. You seem to have the answer for uniform random distribution which are mostly approximations.



                But if you want exact, evenly-spaced distributions (without including the malevolent varient of n=1), there are only (and exactly only) 6 solutions for a 3-sphere.



                These correspond to the vertices of the 5 Platonic solids + the solution of 2 points on opposite sides of each other.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited 2 days ago

























                answered May 12 '16 at 22:37









                theDoctor

                215213




                215213






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f165819%2fhow-to-tile-a-sphere-with-points-at-an-even-density%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

                    Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

                    A Topological Invariant for $pi_3(U(n))$