How to draw the intersection of a circle and a path in METAPOST

How to fade a semiplane defined by line?

Creepy dinosaur pc game identification

What happens if you are holding an Iron Flask with a demon inside and walk into an Antimagic Field?

15% tax on $7.5k earnings. Is that right?

What if a revenant (monster) gains fire resistance?

What is the highest possible scrabble score for placing a single tile

Pre-mixing cryogenic fuels and using only one fuel tank

What exact color does ozone gas have?

Using substitution ciphers to generate new alphabets in a novel

Unexpected behavior of the procedure `Area` on the object 'Polygon'

Multiplicative persistence

Mixing PEX brands

Is there a RAID 0 Equivalent for RAM?

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

How do apertures which seem too large to physically fit work?

Can I say "fingers" when referring to toes?

How to hide some fields of struct in C?

How much character growth crosses the line into breaking the character

How to cover method return statement in Apex Class?

Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?

What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?

Angel of Condemnation - Exile creature with second ability

Can disgust be a key component of horror?

Is there a way to get `mathscr' with lower case letters in pdfLaTeX?



How to draw the intersection of a circle and a path in METAPOST














0















How do I draw only the two sides of the circle which would be left after subtracting the heavy red line?



documentclass{article}

usepackage{luacode}
usepackage{luamplib}
usepackage{calc}
usepackage{xcolor}
usepackage{forloop}

setlength{unitlength}{1bp}
setlength{parindent}{0sp}

begin{document}
pagestyle{empty}

begin{picture}(0,0)
put(0,-72){
begin{mplibcode}
beginfig(1);

pair A, B, C, D, E, F, G, H, I, J;

A:=(72 bp,18 bp); B:=(135 bp,72 bp);
C:=(72 bp,135 bp); D:=(9 bp,72 bp);

draw A..B..C..D..cycle;

E :=(72 bp,144 bp);
F := (36 bp,108 bp);
G := (72 bp,72 bp);
H := (108 bp,36 bp);
I := (72 bp,0);

draw E..F..G..H..I withcolor red withpen pencircle scaled 9 bp;

endfig;
end{mplibcode}}
end{picture}
end{document}


black circle and red path









share



























    0















    How do I draw only the two sides of the circle which would be left after subtracting the heavy red line?



    documentclass{article}

    usepackage{luacode}
    usepackage{luamplib}
    usepackage{calc}
    usepackage{xcolor}
    usepackage{forloop}

    setlength{unitlength}{1bp}
    setlength{parindent}{0sp}

    begin{document}
    pagestyle{empty}

    begin{picture}(0,0)
    put(0,-72){
    begin{mplibcode}
    beginfig(1);

    pair A, B, C, D, E, F, G, H, I, J;

    A:=(72 bp,18 bp); B:=(135 bp,72 bp);
    C:=(72 bp,135 bp); D:=(9 bp,72 bp);

    draw A..B..C..D..cycle;

    E :=(72 bp,144 bp);
    F := (36 bp,108 bp);
    G := (72 bp,72 bp);
    H := (108 bp,36 bp);
    I := (72 bp,0);

    draw E..F..G..H..I withcolor red withpen pencircle scaled 9 bp;

    endfig;
    end{mplibcode}}
    end{picture}
    end{document}


    black circle and red path









    share

























      0












      0








      0








      How do I draw only the two sides of the circle which would be left after subtracting the heavy red line?



      documentclass{article}

      usepackage{luacode}
      usepackage{luamplib}
      usepackage{calc}
      usepackage{xcolor}
      usepackage{forloop}

      setlength{unitlength}{1bp}
      setlength{parindent}{0sp}

      begin{document}
      pagestyle{empty}

      begin{picture}(0,0)
      put(0,-72){
      begin{mplibcode}
      beginfig(1);

      pair A, B, C, D, E, F, G, H, I, J;

      A:=(72 bp,18 bp); B:=(135 bp,72 bp);
      C:=(72 bp,135 bp); D:=(9 bp,72 bp);

      draw A..B..C..D..cycle;

      E :=(72 bp,144 bp);
      F := (36 bp,108 bp);
      G := (72 bp,72 bp);
      H := (108 bp,36 bp);
      I := (72 bp,0);

      draw E..F..G..H..I withcolor red withpen pencircle scaled 9 bp;

      endfig;
      end{mplibcode}}
      end{picture}
      end{document}


      black circle and red path









      share














      How do I draw only the two sides of the circle which would be left after subtracting the heavy red line?



      documentclass{article}

      usepackage{luacode}
      usepackage{luamplib}
      usepackage{calc}
      usepackage{xcolor}
      usepackage{forloop}

      setlength{unitlength}{1bp}
      setlength{parindent}{0sp}

      begin{document}
      pagestyle{empty}

      begin{picture}(0,0)
      put(0,-72){
      begin{mplibcode}
      beginfig(1);

      pair A, B, C, D, E, F, G, H, I, J;

      A:=(72 bp,18 bp); B:=(135 bp,72 bp);
      C:=(72 bp,135 bp); D:=(9 bp,72 bp);

      draw A..B..C..D..cycle;

      E :=(72 bp,144 bp);
      F := (36 bp,108 bp);
      G := (72 bp,72 bp);
      H := (108 bp,36 bp);
      I := (72 bp,0);

      draw E..F..G..H..I withcolor red withpen pencircle scaled 9 bp;

      endfig;
      end{mplibcode}}
      end{picture}
      end{document}


      black circle and red path







      metapost





      share












      share










      share



      share










      asked 1 min ago









      WillAdamsWillAdams

      5,5112032




      5,5112032






















          0






          active

          oldest

          votes











          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481009%2fhow-to-draw-the-intersection-of-a-circle-and-a-path-in-metapost%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481009%2fhow-to-draw-the-intersection-of-a-circle-and-a-path-in-metapost%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...