Relation between a Bezier curve and B-Spline curve












0












$begingroup$


While the ideas behind Bezier curves are rather straight forward, I'm really struggling trying to understand B-Splines. I really researched quite a lot about it and still can't figure it out.



I would like to start with the objective: My aim is to chain a few cubic Bezier curves together in an efficient way. I basically have a set of points and I would like to fit a curve through all of them. There is already a nice and simple way to do so that is available online here, that uses constraints on the meeting points (equality of points, derivative and 2nd derivative) to derive the control points.



But, I heard that B-Splines are also used for that purpose, and might be better for it.



The article here shows you can derive Bezier control points out of a B-Spline (in an easy manner). It also states that:




"Whereas an open string of m Bezier curves of degree n involve nm + 1
distinct control points (shared control points counted only once),
that same string of Bezier curves can be expressed using only m + n
B-spline control points (assuming all neighboring curves are C n−1 )."




So,



1) is this the reason why I would like to use B-Splines? If not, what is the reason? Maybe I shouldn't use B-Splines at all?



2) a B-Spline is constructed using a set of control points. Which control points should I supply it, if I want it to pass through my data points?










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    While the ideas behind Bezier curves are rather straight forward, I'm really struggling trying to understand B-Splines. I really researched quite a lot about it and still can't figure it out.



    I would like to start with the objective: My aim is to chain a few cubic Bezier curves together in an efficient way. I basically have a set of points and I would like to fit a curve through all of them. There is already a nice and simple way to do so that is available online here, that uses constraints on the meeting points (equality of points, derivative and 2nd derivative) to derive the control points.



    But, I heard that B-Splines are also used for that purpose, and might be better for it.



    The article here shows you can derive Bezier control points out of a B-Spline (in an easy manner). It also states that:




    "Whereas an open string of m Bezier curves of degree n involve nm + 1
    distinct control points (shared control points counted only once),
    that same string of Bezier curves can be expressed using only m + n
    B-spline control points (assuming all neighboring curves are C n−1 )."




    So,



    1) is this the reason why I would like to use B-Splines? If not, what is the reason? Maybe I shouldn't use B-Splines at all?



    2) a B-Spline is constructed using a set of control points. Which control points should I supply it, if I want it to pass through my data points?










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      While the ideas behind Bezier curves are rather straight forward, I'm really struggling trying to understand B-Splines. I really researched quite a lot about it and still can't figure it out.



      I would like to start with the objective: My aim is to chain a few cubic Bezier curves together in an efficient way. I basically have a set of points and I would like to fit a curve through all of them. There is already a nice and simple way to do so that is available online here, that uses constraints on the meeting points (equality of points, derivative and 2nd derivative) to derive the control points.



      But, I heard that B-Splines are also used for that purpose, and might be better for it.



      The article here shows you can derive Bezier control points out of a B-Spline (in an easy manner). It also states that:




      "Whereas an open string of m Bezier curves of degree n involve nm + 1
      distinct control points (shared control points counted only once),
      that same string of Bezier curves can be expressed using only m + n
      B-spline control points (assuming all neighboring curves are C n−1 )."




      So,



      1) is this the reason why I would like to use B-Splines? If not, what is the reason? Maybe I shouldn't use B-Splines at all?



      2) a B-Spline is constructed using a set of control points. Which control points should I supply it, if I want it to pass through my data points?










      share|cite|improve this question









      $endgroup$




      While the ideas behind Bezier curves are rather straight forward, I'm really struggling trying to understand B-Splines. I really researched quite a lot about it and still can't figure it out.



      I would like to start with the objective: My aim is to chain a few cubic Bezier curves together in an efficient way. I basically have a set of points and I would like to fit a curve through all of them. There is already a nice and simple way to do so that is available online here, that uses constraints on the meeting points (equality of points, derivative and 2nd derivative) to derive the control points.



      But, I heard that B-Splines are also used for that purpose, and might be better for it.



      The article here shows you can derive Bezier control points out of a B-Spline (in an easy manner). It also states that:




      "Whereas an open string of m Bezier curves of degree n involve nm + 1
      distinct control points (shared control points counted only once),
      that same string of Bezier curves can be expressed using only m + n
      B-spline control points (assuming all neighboring curves are C n−1 )."




      So,



      1) is this the reason why I would like to use B-Splines? If not, what is the reason? Maybe I shouldn't use B-Splines at all?



      2) a B-Spline is constructed using a set of control points. Which control points should I supply it, if I want it to pass through my data points?







      spline bezier-curve






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 9 at 14:52









      David RefaeliDavid Refaeli

      1065




      1065






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          The reason to use B-spline curve instead of multiple Bezier curves are



          1) B-spline curve has a more compact representation, i.e., it uses far fewer control points to represent the same shape.



          2) B-spline curve representation has built-in continuity, which will not be destroyed when moving control points around. For example, a cubic B-spline curve with two Bezier segments have 5 control points. You are free to move these 5 control points and the $C^2$ continuity between the two segments is always maintained. If the same curve is represented by two Bezier curves with 7 control points ($P_0,P_1,...,P_6$ with $P_3$ the shared control point), moving any of $P_2$, $P_3$ or $P_4$ will destroy $C^1$ continuity unless you ensure that $P_3=(P_2+P_4)/2$.



          If you would like to create a B-spline curve to pass through a given set of points, you can search against "B-spline interpolation" on internet.






          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%2f3067527%2frelation-between-a-bezier-curve-and-b-spline-curve%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












            $begingroup$

            The reason to use B-spline curve instead of multiple Bezier curves are



            1) B-spline curve has a more compact representation, i.e., it uses far fewer control points to represent the same shape.



            2) B-spline curve representation has built-in continuity, which will not be destroyed when moving control points around. For example, a cubic B-spline curve with two Bezier segments have 5 control points. You are free to move these 5 control points and the $C^2$ continuity between the two segments is always maintained. If the same curve is represented by two Bezier curves with 7 control points ($P_0,P_1,...,P_6$ with $P_3$ the shared control point), moving any of $P_2$, $P_3$ or $P_4$ will destroy $C^1$ continuity unless you ensure that $P_3=(P_2+P_4)/2$.



            If you would like to create a B-spline curve to pass through a given set of points, you can search against "B-spline interpolation" on internet.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              The reason to use B-spline curve instead of multiple Bezier curves are



              1) B-spline curve has a more compact representation, i.e., it uses far fewer control points to represent the same shape.



              2) B-spline curve representation has built-in continuity, which will not be destroyed when moving control points around. For example, a cubic B-spline curve with two Bezier segments have 5 control points. You are free to move these 5 control points and the $C^2$ continuity between the two segments is always maintained. If the same curve is represented by two Bezier curves with 7 control points ($P_0,P_1,...,P_6$ with $P_3$ the shared control point), moving any of $P_2$, $P_3$ or $P_4$ will destroy $C^1$ continuity unless you ensure that $P_3=(P_2+P_4)/2$.



              If you would like to create a B-spline curve to pass through a given set of points, you can search against "B-spline interpolation" on internet.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                The reason to use B-spline curve instead of multiple Bezier curves are



                1) B-spline curve has a more compact representation, i.e., it uses far fewer control points to represent the same shape.



                2) B-spline curve representation has built-in continuity, which will not be destroyed when moving control points around. For example, a cubic B-spline curve with two Bezier segments have 5 control points. You are free to move these 5 control points and the $C^2$ continuity between the two segments is always maintained. If the same curve is represented by two Bezier curves with 7 control points ($P_0,P_1,...,P_6$ with $P_3$ the shared control point), moving any of $P_2$, $P_3$ or $P_4$ will destroy $C^1$ continuity unless you ensure that $P_3=(P_2+P_4)/2$.



                If you would like to create a B-spline curve to pass through a given set of points, you can search against "B-spline interpolation" on internet.






                share|cite|improve this answer









                $endgroup$



                The reason to use B-spline curve instead of multiple Bezier curves are



                1) B-spline curve has a more compact representation, i.e., it uses far fewer control points to represent the same shape.



                2) B-spline curve representation has built-in continuity, which will not be destroyed when moving control points around. For example, a cubic B-spline curve with two Bezier segments have 5 control points. You are free to move these 5 control points and the $C^2$ continuity between the two segments is always maintained. If the same curve is represented by two Bezier curves with 7 control points ($P_0,P_1,...,P_6$ with $P_3$ the shared control point), moving any of $P_2$, $P_3$ or $P_4$ will destroy $C^1$ continuity unless you ensure that $P_3=(P_2+P_4)/2$.



                If you would like to create a B-spline curve to pass through a given set of points, you can search against "B-spline interpolation" on internet.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jan 10 at 2:38









                fangfang

                2,462166




                2,462166






























                    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%2f3067527%2frelation-between-a-bezier-curve-and-b-spline-curve%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

                    Mario Kart Wii

                    What does “Dominus providebit” mean?

                    Antonio Litta Visconti Arese