arc length reparameterization of a cubic Bezier, in parts












0














While there is no closed form solution arc length reparameterization for cubic Bezier curves, is there a set of solutions that taken together cover all possible classes of cubic Bezier curves, such that as long as you know which class of curve you're dealing with, the arc length reparameterization is simply a matter of "plugging in the numbers" to transform the parametric Bezier function into a function of arc length?



For instance, cubic Beziers can be split into degenerate (lines) curves, single arches (no inflections), double arches (one inflection), or discontinuous curves (with a cusp), where that last class can be trivially treated as two separate continuous curves with a single shared coordinate without affecting the arc length - and all forms can been rotated/translated without affecting the actual arc length in a way that parts of the parametric functions that define them "disappear".



For example, we can rotate/translate any cubic Bezier such that the first coordinate is $(0,0)$, removing one of the polynomial terms from affecting the reparameterization, with the fourth coordinate on $(x,0)$, removing another term from the reparameterization (either we can do this because both start and end point form an edge of the Bezier hull, or because we can split up the curve into two distinct curves at a known time value such that we end up with two curves for which the start and end points form an edge on their respective hulls).



Is there no reparameterization possible even for those simplified cases, given that we don't want "the" solution, just "one of however many solutions that yields, as absolute results, the correct answer"? E.g. if we rotate/translate the curve such that the entire curve is always in the $+/+$ quadrant, then we don't care if the reparameterization yields solutions that aren't the "true" values, we only care that if we plug in an arc length, we get a coordinate for which $(abs(x),abs(y))$ is the correct coordinate.



(I have not been able to find any material that covers arc length reparameterization in this way, only material that goes "there is no general solution. the end")










share|cite|improve this question





























    0














    While there is no closed form solution arc length reparameterization for cubic Bezier curves, is there a set of solutions that taken together cover all possible classes of cubic Bezier curves, such that as long as you know which class of curve you're dealing with, the arc length reparameterization is simply a matter of "plugging in the numbers" to transform the parametric Bezier function into a function of arc length?



    For instance, cubic Beziers can be split into degenerate (lines) curves, single arches (no inflections), double arches (one inflection), or discontinuous curves (with a cusp), where that last class can be trivially treated as two separate continuous curves with a single shared coordinate without affecting the arc length - and all forms can been rotated/translated without affecting the actual arc length in a way that parts of the parametric functions that define them "disappear".



    For example, we can rotate/translate any cubic Bezier such that the first coordinate is $(0,0)$, removing one of the polynomial terms from affecting the reparameterization, with the fourth coordinate on $(x,0)$, removing another term from the reparameterization (either we can do this because both start and end point form an edge of the Bezier hull, or because we can split up the curve into two distinct curves at a known time value such that we end up with two curves for which the start and end points form an edge on their respective hulls).



    Is there no reparameterization possible even for those simplified cases, given that we don't want "the" solution, just "one of however many solutions that yields, as absolute results, the correct answer"? E.g. if we rotate/translate the curve such that the entire curve is always in the $+/+$ quadrant, then we don't care if the reparameterization yields solutions that aren't the "true" values, we only care that if we plug in an arc length, we get a coordinate for which $(abs(x),abs(y))$ is the correct coordinate.



    (I have not been able to find any material that covers arc length reparameterization in this way, only material that goes "there is no general solution. the end")










    share|cite|improve this question



























      0












      0








      0







      While there is no closed form solution arc length reparameterization for cubic Bezier curves, is there a set of solutions that taken together cover all possible classes of cubic Bezier curves, such that as long as you know which class of curve you're dealing with, the arc length reparameterization is simply a matter of "plugging in the numbers" to transform the parametric Bezier function into a function of arc length?



      For instance, cubic Beziers can be split into degenerate (lines) curves, single arches (no inflections), double arches (one inflection), or discontinuous curves (with a cusp), where that last class can be trivially treated as two separate continuous curves with a single shared coordinate without affecting the arc length - and all forms can been rotated/translated without affecting the actual arc length in a way that parts of the parametric functions that define them "disappear".



      For example, we can rotate/translate any cubic Bezier such that the first coordinate is $(0,0)$, removing one of the polynomial terms from affecting the reparameterization, with the fourth coordinate on $(x,0)$, removing another term from the reparameterization (either we can do this because both start and end point form an edge of the Bezier hull, or because we can split up the curve into two distinct curves at a known time value such that we end up with two curves for which the start and end points form an edge on their respective hulls).



      Is there no reparameterization possible even for those simplified cases, given that we don't want "the" solution, just "one of however many solutions that yields, as absolute results, the correct answer"? E.g. if we rotate/translate the curve such that the entire curve is always in the $+/+$ quadrant, then we don't care if the reparameterization yields solutions that aren't the "true" values, we only care that if we plug in an arc length, we get a coordinate for which $(abs(x),abs(y))$ is the correct coordinate.



      (I have not been able to find any material that covers arc length reparameterization in this way, only material that goes "there is no general solution. the end")










      share|cite|improve this question















      While there is no closed form solution arc length reparameterization for cubic Bezier curves, is there a set of solutions that taken together cover all possible classes of cubic Bezier curves, such that as long as you know which class of curve you're dealing with, the arc length reparameterization is simply a matter of "plugging in the numbers" to transform the parametric Bezier function into a function of arc length?



      For instance, cubic Beziers can be split into degenerate (lines) curves, single arches (no inflections), double arches (one inflection), or discontinuous curves (with a cusp), where that last class can be trivially treated as two separate continuous curves with a single shared coordinate without affecting the arc length - and all forms can been rotated/translated without affecting the actual arc length in a way that parts of the parametric functions that define them "disappear".



      For example, we can rotate/translate any cubic Bezier such that the first coordinate is $(0,0)$, removing one of the polynomial terms from affecting the reparameterization, with the fourth coordinate on $(x,0)$, removing another term from the reparameterization (either we can do this because both start and end point form an edge of the Bezier hull, or because we can split up the curve into two distinct curves at a known time value such that we end up with two curves for which the start and end points form an edge on their respective hulls).



      Is there no reparameterization possible even for those simplified cases, given that we don't want "the" solution, just "one of however many solutions that yields, as absolute results, the correct answer"? E.g. if we rotate/translate the curve such that the entire curve is always in the $+/+$ quadrant, then we don't care if the reparameterization yields solutions that aren't the "true" values, we only care that if we plug in an arc length, we get a coordinate for which $(abs(x),abs(y))$ is the correct coordinate.



      (I have not been able to find any material that covers arc length reparameterization in this way, only material that goes "there is no general solution. the end")







      calculus bezier-curve






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 3 '18 at 20:43

























      asked Dec 3 '18 at 20:36









      Mike 'Pomax' Kamermans

      244111




      244111






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree higher) has no close-form solution in general is because we cannot find a close-form representation of the arc length function:



          $L(t)=int_0^t{sqrt{x'^2(u)+y'^2(u)+z'^2(u)}du}$,



          let alone to find its inverse function.



          However, there are indeed a few classes of cubic Bezier curves where the $L(t)$ can be represented as a close-form formula. For example, when $P_1=P_0+(P_3-P_0)/3$ and $P_2=P_0+2(P_3-P_0)/3$, the cubic Bezier curve will be a straight line with constant first derivative.



          There is another class of curves called Pythagorean Hodograph curves (PH curves) where the $L(t)$ has a close-form representation as well. This class of curves has $x'^2(t)+y'^2(t)+z'^2(t) = sigma^2(t)$ and therefore their $L(t)$ can be computed exactly.



          Even with these two classes of cubic Bezier curves (i.e., straight line with constant first derivative and PH curve) where arc length reparametrization is possible, it remains as "no general solution" for most cubic Bezier curves and has to resort to numeric methods.






          share|cite|improve this answer























          • Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
            – Mike 'Pomax' Kamermans
            Dec 10 '18 at 22:23










          • From the question's title, isn't it about "cubic Bezier"?
            – fang
            Dec 11 '18 at 3:23










          • I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
            – Mike 'Pomax' Kamermans
            Dec 11 '18 at 16:20








          • 1




            I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
            – fang
            Dec 11 '18 at 16:56











          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%2f3024630%2farc-length-reparameterization-of-a-cubic-bezier-in-parts%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









          0














          Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree higher) has no close-form solution in general is because we cannot find a close-form representation of the arc length function:



          $L(t)=int_0^t{sqrt{x'^2(u)+y'^2(u)+z'^2(u)}du}$,



          let alone to find its inverse function.



          However, there are indeed a few classes of cubic Bezier curves where the $L(t)$ can be represented as a close-form formula. For example, when $P_1=P_0+(P_3-P_0)/3$ and $P_2=P_0+2(P_3-P_0)/3$, the cubic Bezier curve will be a straight line with constant first derivative.



          There is another class of curves called Pythagorean Hodograph curves (PH curves) where the $L(t)$ has a close-form representation as well. This class of curves has $x'^2(t)+y'^2(t)+z'^2(t) = sigma^2(t)$ and therefore their $L(t)$ can be computed exactly.



          Even with these two classes of cubic Bezier curves (i.e., straight line with constant first derivative and PH curve) where arc length reparametrization is possible, it remains as "no general solution" for most cubic Bezier curves and has to resort to numeric methods.






          share|cite|improve this answer























          • Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
            – Mike 'Pomax' Kamermans
            Dec 10 '18 at 22:23










          • From the question's title, isn't it about "cubic Bezier"?
            – fang
            Dec 11 '18 at 3:23










          • I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
            – Mike 'Pomax' Kamermans
            Dec 11 '18 at 16:20








          • 1




            I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
            – fang
            Dec 11 '18 at 16:56
















          0














          Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree higher) has no close-form solution in general is because we cannot find a close-form representation of the arc length function:



          $L(t)=int_0^t{sqrt{x'^2(u)+y'^2(u)+z'^2(u)}du}$,



          let alone to find its inverse function.



          However, there are indeed a few classes of cubic Bezier curves where the $L(t)$ can be represented as a close-form formula. For example, when $P_1=P_0+(P_3-P_0)/3$ and $P_2=P_0+2(P_3-P_0)/3$, the cubic Bezier curve will be a straight line with constant first derivative.



          There is another class of curves called Pythagorean Hodograph curves (PH curves) where the $L(t)$ has a close-form representation as well. This class of curves has $x'^2(t)+y'^2(t)+z'^2(t) = sigma^2(t)$ and therefore their $L(t)$ can be computed exactly.



          Even with these two classes of cubic Bezier curves (i.e., straight line with constant first derivative and PH curve) where arc length reparametrization is possible, it remains as "no general solution" for most cubic Bezier curves and has to resort to numeric methods.






          share|cite|improve this answer























          • Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
            – Mike 'Pomax' Kamermans
            Dec 10 '18 at 22:23










          • From the question's title, isn't it about "cubic Bezier"?
            – fang
            Dec 11 '18 at 3:23










          • I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
            – Mike 'Pomax' Kamermans
            Dec 11 '18 at 16:20








          • 1




            I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
            – fang
            Dec 11 '18 at 16:56














          0












          0








          0






          Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree higher) has no close-form solution in general is because we cannot find a close-form representation of the arc length function:



          $L(t)=int_0^t{sqrt{x'^2(u)+y'^2(u)+z'^2(u)}du}$,



          let alone to find its inverse function.



          However, there are indeed a few classes of cubic Bezier curves where the $L(t)$ can be represented as a close-form formula. For example, when $P_1=P_0+(P_3-P_0)/3$ and $P_2=P_0+2(P_3-P_0)/3$, the cubic Bezier curve will be a straight line with constant first derivative.



          There is another class of curves called Pythagorean Hodograph curves (PH curves) where the $L(t)$ has a close-form representation as well. This class of curves has $x'^2(t)+y'^2(t)+z'^2(t) = sigma^2(t)$ and therefore their $L(t)$ can be computed exactly.



          Even with these two classes of cubic Bezier curves (i.e., straight line with constant first derivative and PH curve) where arc length reparametrization is possible, it remains as "no general solution" for most cubic Bezier curves and has to resort to numeric methods.






          share|cite|improve this answer














          Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree higher) has no close-form solution in general is because we cannot find a close-form representation of the arc length function:



          $L(t)=int_0^t{sqrt{x'^2(u)+y'^2(u)+z'^2(u)}du}$,



          let alone to find its inverse function.



          However, there are indeed a few classes of cubic Bezier curves where the $L(t)$ can be represented as a close-form formula. For example, when $P_1=P_0+(P_3-P_0)/3$ and $P_2=P_0+2(P_3-P_0)/3$, the cubic Bezier curve will be a straight line with constant first derivative.



          There is another class of curves called Pythagorean Hodograph curves (PH curves) where the $L(t)$ has a close-form representation as well. This class of curves has $x'^2(t)+y'^2(t)+z'^2(t) = sigma^2(t)$ and therefore their $L(t)$ can be computed exactly.



          Even with these two classes of cubic Bezier curves (i.e., straight line with constant first derivative and PH curve) where arc length reparametrization is possible, it remains as "no general solution" for most cubic Bezier curves and has to resort to numeric methods.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 11 '18 at 16:55

























          answered Dec 10 '18 at 20:15









          fang

          2,462166




          2,462166












          • Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
            – Mike 'Pomax' Kamermans
            Dec 10 '18 at 22:23










          • From the question's title, isn't it about "cubic Bezier"?
            – fang
            Dec 11 '18 at 3:23










          • I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
            – Mike 'Pomax' Kamermans
            Dec 11 '18 at 16:20








          • 1




            I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
            – fang
            Dec 11 '18 at 16:56


















          • Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
            – Mike 'Pomax' Kamermans
            Dec 10 '18 at 22:23










          • From the question's title, isn't it about "cubic Bezier"?
            – fang
            Dec 11 '18 at 3:23










          • I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
            – Mike 'Pomax' Kamermans
            Dec 11 '18 at 16:20








          • 1




            I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
            – fang
            Dec 11 '18 at 16:56
















          Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
          – Mike 'Pomax' Kamermans
          Dec 10 '18 at 22:23




          Not sure I understand, quadratic Beziers supposedly have a perfectly fine closed form solution
          – Mike 'Pomax' Kamermans
          Dec 10 '18 at 22:23












          From the question's title, isn't it about "cubic Bezier"?
          – fang
          Dec 11 '18 at 3:23




          From the question's title, isn't it about "cubic Bezier"?
          – fang
          Dec 11 '18 at 3:23












          I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
          – Mike 'Pomax' Kamermans
          Dec 11 '18 at 16:20






          I'm remarking on this: "Arc length reparameterization of a cubic Bezier curve (or Bezier curve of any degree) has no close-form solution", which suggests the statement covers quadratic -and linear, I guess- Beziers as well. Going back to the question, though: an arc length function doesn't have to be "one function" so can we just cut up a cubic in a smart way to yield a piecewise arc length reparameterization?
          – Mike 'Pomax' Kamermans
          Dec 11 '18 at 16:20






          1




          1




          I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
          – fang
          Dec 11 '18 at 16:56




          I see. It should be "...any degree higher". Thanks for catching this. It is corrected now.
          – fang
          Dec 11 '18 at 16:56


















          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.





          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%2fmath.stackexchange.com%2fquestions%2f3024630%2farc-length-reparameterization-of-a-cubic-bezier-in-parts%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

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...