The Metapost path fullcircle












2














Is the MetaPost path fullcircle cyclic?



I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.



UPDATE:



show cycle fullcircle;



will print the answer true.










share|improve this question









New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
    – daleif
    5 hours ago










  • I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
    – soegaard
    5 hours ago






  • 1




    Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
    – daleif
    5 hours ago






  • 2




    Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
    – daleif
    5 hours ago






  • 1




    Tak for tippet.
    – soegaard
    4 hours ago
















2














Is the MetaPost path fullcircle cyclic?



I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.



UPDATE:



show cycle fullcircle;



will print the answer true.










share|improve this question









New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
    – daleif
    5 hours ago










  • I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
    – soegaard
    5 hours ago






  • 1




    Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
    – daleif
    5 hours ago






  • 2




    Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
    – daleif
    5 hours ago






  • 1




    Tak for tippet.
    – soegaard
    4 hours ago














2












2








2







Is the MetaPost path fullcircle cyclic?



I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.



UPDATE:



show cycle fullcircle;



will print the answer true.










share|improve this question









New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Is the MetaPost path fullcircle cyclic?



I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.



UPDATE:



show cycle fullcircle;



will print the answer true.







metapost






share|improve this question









New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 5 hours ago





















New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









soegaard

1114




1114




New contributor




soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






soegaard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
    – daleif
    5 hours ago










  • I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
    – soegaard
    5 hours ago






  • 1




    Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
    – daleif
    5 hours ago






  • 2




    Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
    – daleif
    5 hours ago






  • 1




    Tak for tippet.
    – soegaard
    4 hours ago














  • 2




    How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
    – daleif
    5 hours ago










  • I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
    – soegaard
    5 hours ago






  • 1




    Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
    – daleif
    5 hours ago






  • 2




    Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
    – daleif
    5 hours ago






  • 1




    Tak for tippet.
    – soegaard
    4 hours ago








2




2




How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago




How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago












I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
– soegaard
5 hours ago




I know that there is an operator cycle, but I don't know how to print the result of cycle fullcircle.
– soegaard
5 hours ago




1




1




Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago




Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago




2




2




Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago




Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago




1




1




Tak for tippet.
– soegaard
4 hours ago




Tak for tippet.
– soegaard
4 hours ago










1 Answer
1






active

oldest

votes


















3














A path such as



(0,0)..(1,0)..(1,1)..(0,1)..(0,0)


is open. You can check this by doing



*path p;

*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)


On the other hand, we can see



*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)


Going on:



*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

*show cycle p;
>> true


You can get the definition of fullcircle:



*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle


and this is cyclic.



Actually you don't find the definition in plain.mp, because fullcircle is defined by fullcircle = makepath pencircle;, but when the path has been built it can be shown.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    soegaard is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467957%2fthe-metapost-path-fullcircle%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    A path such as



    (0,0)..(1,0)..(1,1)..(0,1)..(0,0)


    is open. You can check this by doing



    *path p;

    *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

    *show point 3 of p;
    >> (0,1)
    *show point 3.5 of p;
    >> (-0.20709,0.49998)
    *show point 4 of p;
    >> (0,0)
    *show point 4.1 of p;
    >> (0,0)
    *show point 10 of p;
    >> (0,0)
    *show point 12 of p;
    >> (0,0)


    On the other hand, we can see



    *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

    *show point 3 of p;
    >> (0,1)
    *show point 3.5 of p;
    >> (-0.20709,0.49998)
    *show point 4 of p;
    >> (0,0)
    *show point 4.1 of p;
    >> (0.08765,-0.07457)
    *show point 10 of p;
    >> (1,1)
    *show point 12 of p;
    >> (0,0)


    Going on:



    *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

    *show cycle p;
    >> false
    *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

    *show cycle p;
    >> true


    You can get the definition of fullcircle:



    *show fullcircle;
    >> Path at line 0:
    (0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
    ..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
    ..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
    ..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
    ..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
    ..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
    ..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
    ..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
    ..cycle


    and this is cyclic.



    Actually you don't find the definition in plain.mp, because fullcircle is defined by fullcircle = makepath pencircle;, but when the path has been built it can be shown.






    share|improve this answer


























      3














      A path such as



      (0,0)..(1,0)..(1,1)..(0,1)..(0,0)


      is open. You can check this by doing



      *path p;

      *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

      *show point 3 of p;
      >> (0,1)
      *show point 3.5 of p;
      >> (-0.20709,0.49998)
      *show point 4 of p;
      >> (0,0)
      *show point 4.1 of p;
      >> (0,0)
      *show point 10 of p;
      >> (0,0)
      *show point 12 of p;
      >> (0,0)


      On the other hand, we can see



      *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

      *show point 3 of p;
      >> (0,1)
      *show point 3.5 of p;
      >> (-0.20709,0.49998)
      *show point 4 of p;
      >> (0,0)
      *show point 4.1 of p;
      >> (0.08765,-0.07457)
      *show point 10 of p;
      >> (1,1)
      *show point 12 of p;
      >> (0,0)


      Going on:



      *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

      *show cycle p;
      >> false
      *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

      *show cycle p;
      >> true


      You can get the definition of fullcircle:



      *show fullcircle;
      >> Path at line 0:
      (0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
      ..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
      ..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
      ..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
      ..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
      ..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
      ..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
      ..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
      ..cycle


      and this is cyclic.



      Actually you don't find the definition in plain.mp, because fullcircle is defined by fullcircle = makepath pencircle;, but when the path has been built it can be shown.






      share|improve this answer
























        3












        3








        3






        A path such as



        (0,0)..(1,0)..(1,1)..(0,1)..(0,0)


        is open. You can check this by doing



        *path p;

        *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

        *show point 3 of p;
        >> (0,1)
        *show point 3.5 of p;
        >> (-0.20709,0.49998)
        *show point 4 of p;
        >> (0,0)
        *show point 4.1 of p;
        >> (0,0)
        *show point 10 of p;
        >> (0,0)
        *show point 12 of p;
        >> (0,0)


        On the other hand, we can see



        *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

        *show point 3 of p;
        >> (0,1)
        *show point 3.5 of p;
        >> (-0.20709,0.49998)
        *show point 4 of p;
        >> (0,0)
        *show point 4.1 of p;
        >> (0.08765,-0.07457)
        *show point 10 of p;
        >> (1,1)
        *show point 12 of p;
        >> (0,0)


        Going on:



        *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

        *show cycle p;
        >> false
        *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

        *show cycle p;
        >> true


        You can get the definition of fullcircle:



        *show fullcircle;
        >> Path at line 0:
        (0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
        ..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
        ..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
        ..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
        ..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
        ..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
        ..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
        ..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
        ..cycle


        and this is cyclic.



        Actually you don't find the definition in plain.mp, because fullcircle is defined by fullcircle = makepath pencircle;, but when the path has been built it can be shown.






        share|improve this answer












        A path such as



        (0,0)..(1,0)..(1,1)..(0,1)..(0,0)


        is open. You can check this by doing



        *path p;

        *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

        *show point 3 of p;
        >> (0,1)
        *show point 3.5 of p;
        >> (-0.20709,0.49998)
        *show point 4 of p;
        >> (0,0)
        *show point 4.1 of p;
        >> (0,0)
        *show point 10 of p;
        >> (0,0)
        *show point 12 of p;
        >> (0,0)


        On the other hand, we can see



        *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

        *show point 3 of p;
        >> (0,1)
        *show point 3.5 of p;
        >> (-0.20709,0.49998)
        *show point 4 of p;
        >> (0,0)
        *show point 4.1 of p;
        >> (0.08765,-0.07457)
        *show point 10 of p;
        >> (1,1)
        *show point 12 of p;
        >> (0,0)


        Going on:



        *p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);

        *show cycle p;
        >> false
        *p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;

        *show cycle p;
        >> true


        You can get the definition of fullcircle:



        *show fullcircle;
        >> Path at line 0:
        (0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
        ..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
        ..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
        ..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
        ..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
        ..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
        ..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
        ..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
        ..cycle


        and this is cyclic.



        Actually you don't find the definition in plain.mp, because fullcircle is defined by fullcircle = makepath pencircle;, but when the path has been built it can be shown.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        egreg

        708k8618823164




        708k8618823164






















            soegaard is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            soegaard is a new contributor. Be nice, and check out our Code of Conduct.













            soegaard is a new contributor. Be nice, and check out our Code of Conduct.












            soegaard is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467957%2fthe-metapost-path-fullcircle%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

            What visual should I use to simply compare current year value vs last year in Power BI desktop

            How to ignore python UserWarning in pytest?

            Alexandru Averescu