Bézier Curves: where the 3 (or 1/3) constant comes from when moving from Hermite curves?












0












$begingroup$


I'm learning Bézier Curves, and I'm stuck at the reason why they use 3 (or 1/3) constant when moving from Hermite curves?



Like in this, this, and this source.



e.g. why t0 = 3(q1 - q0) ?



enter image description here



or why v1 = v0 + 1/3 d0 in the first link:



x0 → v0



→ v1 = v0 + ⅓d0



→ v2 = v3 – ⅓d1



x1 → v3










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    I'm learning Bézier Curves, and I'm stuck at the reason why they use 3 (or 1/3) constant when moving from Hermite curves?



    Like in this, this, and this source.



    e.g. why t0 = 3(q1 - q0) ?



    enter image description here



    or why v1 = v0 + 1/3 d0 in the first link:



    x0 → v0



    → v1 = v0 + ⅓d0



    → v2 = v3 – ⅓d1



    x1 → v3










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      I'm learning Bézier Curves, and I'm stuck at the reason why they use 3 (or 1/3) constant when moving from Hermite curves?



      Like in this, this, and this source.



      e.g. why t0 = 3(q1 - q0) ?



      enter image description here



      or why v1 = v0 + 1/3 d0 in the first link:



      x0 → v0



      → v1 = v0 + ⅓d0



      → v2 = v3 – ⅓d1



      x1 → v3










      share|cite|improve this question









      $endgroup$




      I'm learning Bézier Curves, and I'm stuck at the reason why they use 3 (or 1/3) constant when moving from Hermite curves?



      Like in this, this, and this source.



      e.g. why t0 = 3(q1 - q0) ?



      enter image description here



      or why v1 = v0 + 1/3 d0 in the first link:



      x0 → v0



      → v1 = v0 + ⅓d0



      → v2 = v3 – ⅓d1



      x1 → v3







      bezier-curve






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 19 '18 at 15:30









      David RefaeliDavid Refaeli

      1166




      1166






















          2 Answers
          2






          active

          oldest

          votes


















          0












          $begingroup$

          A cubic Bezier curve is represented as



          $$B(t)=(1-t)^3Q_0+3(1-t)^2tQ_1+3(1-t)t^2Q_2+t^3Q_3$$



          and its first derivative is



          $$B'(t)=3(1-t)^2(Q_1-Q_0)+6t(1-t)(Q_2-Q_1)+3t^2(Q_3-Q_2)$$



          For cubic Hermite curve, $P_0,T_0, P_1$ and $T_1$ are the position and first derivative vectors at curve's start ($t=0$) and end ($t=1$). So, we can evaluate the cubic Bezier curve's position vector and first derivative at $t=0$ and $t=1$ to obtain



          $P_0=B(0)=Q_0$
          $T_0=B'(0)=3(Q_1-Q_0)$
          $P_1=B(1)=Q_3$
          $T_1=B'(1)=3(Q_3-Q_2)$.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
            $endgroup$
            – David Refaeli
            Dec 20 '18 at 6:26



















          0












          $begingroup$

          As the answer from @fang shows, the $tfrac13$ arises from the use of the Bernstein polynomials (the blending functions you use to define Bezier curves).



          But there are other forms of the same curve that use different constants. The Timmer form of the curve uses a constant of $tfrac14$, and the Ball form uses $tfrac12$. Different blending functions will give you different constants. There's nothing magic about $tfrac13$; in some ways $tfrac14$ (the Timmer form) is a better choice.



          There's a picture showing the Timmer control points in my answer to this question.






          share|cite|improve this answer









          $endgroup$













            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',
            autoActivateHeartbeat: false,
            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%2f3046507%2fb%25c3%25a9zier-curves-where-the-3-or-1-3-constant-comes-from-when-moving-from-hermite%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









            0












            $begingroup$

            A cubic Bezier curve is represented as



            $$B(t)=(1-t)^3Q_0+3(1-t)^2tQ_1+3(1-t)t^2Q_2+t^3Q_3$$



            and its first derivative is



            $$B'(t)=3(1-t)^2(Q_1-Q_0)+6t(1-t)(Q_2-Q_1)+3t^2(Q_3-Q_2)$$



            For cubic Hermite curve, $P_0,T_0, P_1$ and $T_1$ are the position and first derivative vectors at curve's start ($t=0$) and end ($t=1$). So, we can evaluate the cubic Bezier curve's position vector and first derivative at $t=0$ and $t=1$ to obtain



            $P_0=B(0)=Q_0$
            $T_0=B'(0)=3(Q_1-Q_0)$
            $P_1=B(1)=Q_3$
            $T_1=B'(1)=3(Q_3-Q_2)$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
              $endgroup$
              – David Refaeli
              Dec 20 '18 at 6:26
















            0












            $begingroup$

            A cubic Bezier curve is represented as



            $$B(t)=(1-t)^3Q_0+3(1-t)^2tQ_1+3(1-t)t^2Q_2+t^3Q_3$$



            and its first derivative is



            $$B'(t)=3(1-t)^2(Q_1-Q_0)+6t(1-t)(Q_2-Q_1)+3t^2(Q_3-Q_2)$$



            For cubic Hermite curve, $P_0,T_0, P_1$ and $T_1$ are the position and first derivative vectors at curve's start ($t=0$) and end ($t=1$). So, we can evaluate the cubic Bezier curve's position vector and first derivative at $t=0$ and $t=1$ to obtain



            $P_0=B(0)=Q_0$
            $T_0=B'(0)=3(Q_1-Q_0)$
            $P_1=B(1)=Q_3$
            $T_1=B'(1)=3(Q_3-Q_2)$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
              $endgroup$
              – David Refaeli
              Dec 20 '18 at 6:26














            0












            0








            0





            $begingroup$

            A cubic Bezier curve is represented as



            $$B(t)=(1-t)^3Q_0+3(1-t)^2tQ_1+3(1-t)t^2Q_2+t^3Q_3$$



            and its first derivative is



            $$B'(t)=3(1-t)^2(Q_1-Q_0)+6t(1-t)(Q_2-Q_1)+3t^2(Q_3-Q_2)$$



            For cubic Hermite curve, $P_0,T_0, P_1$ and $T_1$ are the position and first derivative vectors at curve's start ($t=0$) and end ($t=1$). So, we can evaluate the cubic Bezier curve's position vector and first derivative at $t=0$ and $t=1$ to obtain



            $P_0=B(0)=Q_0$
            $T_0=B'(0)=3(Q_1-Q_0)$
            $P_1=B(1)=Q_3$
            $T_1=B'(1)=3(Q_3-Q_2)$.






            share|cite|improve this answer









            $endgroup$



            A cubic Bezier curve is represented as



            $$B(t)=(1-t)^3Q_0+3(1-t)^2tQ_1+3(1-t)t^2Q_2+t^3Q_3$$



            and its first derivative is



            $$B'(t)=3(1-t)^2(Q_1-Q_0)+6t(1-t)(Q_2-Q_1)+3t^2(Q_3-Q_2)$$



            For cubic Hermite curve, $P_0,T_0, P_1$ and $T_1$ are the position and first derivative vectors at curve's start ($t=0$) and end ($t=1$). So, we can evaluate the cubic Bezier curve's position vector and first derivative at $t=0$ and $t=1$ to obtain



            $P_0=B(0)=Q_0$
            $T_0=B'(0)=3(Q_1-Q_0)$
            $P_1=B(1)=Q_3$
            $T_1=B'(1)=3(Q_3-Q_2)$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 19 '18 at 17:45









            fangfang

            2,472166




            2,472166












            • $begingroup$
              ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
              $endgroup$
              – David Refaeli
              Dec 20 '18 at 6:26


















            • $begingroup$
              ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
              $endgroup$
              – David Refaeli
              Dec 20 '18 at 6:26
















            $begingroup$
            ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
            $endgroup$
            – David Refaeli
            Dec 20 '18 at 6:26




            $begingroup$
            ok, this makes perfect sense if you take a Bezier and check its Hermite constraints. But in all these lectures they start from Hermite and then "evolve" it to a Bezier... Maybe it's just cheating ("heuristics") as they know what is needed to get a Bezier. I tried to understand if there's a stronger intuition of why the 3 constant is used
            $endgroup$
            – David Refaeli
            Dec 20 '18 at 6:26











            0












            $begingroup$

            As the answer from @fang shows, the $tfrac13$ arises from the use of the Bernstein polynomials (the blending functions you use to define Bezier curves).



            But there are other forms of the same curve that use different constants. The Timmer form of the curve uses a constant of $tfrac14$, and the Ball form uses $tfrac12$. Different blending functions will give you different constants. There's nothing magic about $tfrac13$; in some ways $tfrac14$ (the Timmer form) is a better choice.



            There's a picture showing the Timmer control points in my answer to this question.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              As the answer from @fang shows, the $tfrac13$ arises from the use of the Bernstein polynomials (the blending functions you use to define Bezier curves).



              But there are other forms of the same curve that use different constants. The Timmer form of the curve uses a constant of $tfrac14$, and the Ball form uses $tfrac12$. Different blending functions will give you different constants. There's nothing magic about $tfrac13$; in some ways $tfrac14$ (the Timmer form) is a better choice.



              There's a picture showing the Timmer control points in my answer to this question.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                As the answer from @fang shows, the $tfrac13$ arises from the use of the Bernstein polynomials (the blending functions you use to define Bezier curves).



                But there are other forms of the same curve that use different constants. The Timmer form of the curve uses a constant of $tfrac14$, and the Ball form uses $tfrac12$. Different blending functions will give you different constants. There's nothing magic about $tfrac13$; in some ways $tfrac14$ (the Timmer form) is a better choice.



                There's a picture showing the Timmer control points in my answer to this question.






                share|cite|improve this answer









                $endgroup$



                As the answer from @fang shows, the $tfrac13$ arises from the use of the Bernstein polynomials (the blending functions you use to define Bezier curves).



                But there are other forms of the same curve that use different constants. The Timmer form of the curve uses a constant of $tfrac14$, and the Ball form uses $tfrac12$. Different blending functions will give you different constants. There's nothing magic about $tfrac13$; in some ways $tfrac14$ (the Timmer form) is a better choice.



                There's a picture showing the Timmer control points in my answer to this question.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 30 '18 at 3:59









                bubbabubba

                30.5k33188




                30.5k33188






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics 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.


                    Use MathJax to format equations. MathJax reference.


                    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%2fmath.stackexchange.com%2fquestions%2f3046507%2fb%25c3%25a9zier-curves-where-the-3-or-1-3-constant-comes-from-when-moving-from-hermite%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

                    Wiesbaden

                    Marschland

                    Dieringhausen