Results 1 to 6 of 6

Math Help - Quire in Bezier curves

  1. #1
    Newbie vinay's Avatar
    Joined
    Jun 2009
    From
    Hyderabad, India
    Posts
    15

    Question Quire in Bezier curves

    I have 3 points and 3 slopes contraints at those points. Now I want to fix a single Bezier curves which passes through all the 3 points and satisfies the slope constriants at all these 3 locations.
    Please help me.
    Thanks in Advance.

    Thanks,
    Vinayender.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Apr 2005
    Posts
    16,393
    Thanks
    1845
    A "Bezier curve" is a cubic spline, that is, a piecewise cubic function that fits the conditions: y= ax^3+ bx^2+ cx+ d. A single cubic won't do it- you have 4 numbers to fit and have 6 conditions. If you use one cubic y= a_1x^3+ b_1x^2+ c_1x+ d_1, for the first two points and another y= a_2x^3+ b_2x^2+ c_2x+ d_2, for the second two (the middle point being used in both), you will also require that the values and the first derivative match at the middle point.

    Assuming that the points are (x_0, y_0), (x_1, y_1), x_2, y2, and that the slopes at these points are m_0, m_1, and m_2, respectively, then you have the equations:
    values:
    a_1x_0^3+ b_1x_0^2+ c_1x_0+ d_1= y_0
    a_1x_1^3+ b_1x_1^2+ c_1x_1+ d_1= y_1
    a_2x_1^3+ b_2x_1^2+ c_2x_1+ d_2= y_1
    a_2x_2^3+ b_2x_1^2+ c_2x_2+ d_2= y_2

    slopes:
    3a_1x_0^2+ 2b_1x_0+ d_1= m_0
    3a_1x_1^2+ 2b_1x_1+ d_1= m_1
    3a_2x_1^2+ 2b_2x_1+ d_2= m_1
    3a_2x_2^2+ 2b_2x_2+ d_2= m_2

    That gives eight equations to solve for the eight coefficients.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie vinay's Avatar
    Joined
    Jun 2009
    From
    Hyderabad, India
    Posts
    15

    Question

    First of all Thank you very much HallsofIvy...

    actually I wanted to satisy all the six boundary conditions using a single bezier curve rather than using mutiple, peice wise continues Bezier curves. I dont mind using any higher order Bezier curve. I wanted to construct the curve which should always pass through the 3 specified coordinates and also satisfying the slope constrains at these 3 coordinates using a single Bezier curve and then tamper the curve using the control points with out loosing my constriants.

    I am not sure wether we can do this or not
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member
    Joined
    Jan 2009
    Posts
    591
    Quote Originally Posted by vinay View Post
    ... I wanted to construct the curve which should always pass through the 3 specified coordinates and also satisfying the slope constrains at these 3 coordinates using a single Bezier curve ...

    I am not sure wether we can do this or not

    You can do it.
    see this
    Bézier Curve -- from Wolfram MathWorld
    A desirable property of these curves is that the curve can be translated and rotated by performing these operations on the control points.

    Undesirable properties of Bézier curves are their numerical instability for large numbers of control points, and the fact that moving a single control point changes the global shape of the curve. The former is sometimes avoided by smoothly patching together low-order Bézier curves.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie vinay's Avatar
    Joined
    Jun 2009
    From
    Hyderabad, India
    Posts
    15

    Question Curvature continitivity

    Thank you very much aidan.....

    ok fine i the only way to do this is by using mutliple Bezier curves...
    It looks so obvious from me how to maintain slope continitivity..... BUT then, can you please explain me to make curvature continutivity between two 4th order Bezier curves ??????
    Follow Math Help Forum on Facebook and Google+

  6. #6
    MHF Contributor

    Joined
    Apr 2005
    Posts
    16,393
    Thanks
    1845
    Quote Originally Posted by vinay View Post
    Thank you very much aidan.....

    ok fine i the only way to do this is by using mutliple Bezier curves...
    That's what Bezier curves are: piecewise polynomials!

    It looks so obvious from me how to maintain slope continitivity..... BUT then, can you please explain me to make curvature continutivity between two 4th order Bezier curves ??????
    The curvature depends upon the second derivative. As long as you make the second derivates, from each side, equal at the knots, the curve will have continuous curvature.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Bezier Curves help?
    Posted in the Algebra Forum
    Replies: 0
    Last Post: August 24th 2010, 12:04 AM
  2. Cubic Bezier Curves
    Posted in the Advanced Applied Math Forum
    Replies: 1
    Last Post: December 6th 2008, 08:55 PM
  3. Replies: 0
    Last Post: November 15th 2008, 06:01 PM
  4. Cubic Bézier Curves
    Posted in the Advanced Applied Math Forum
    Replies: 0
    Last Post: June 15th 2008, 11:22 PM

Search Tags


/mathhelpforum @mathhelpforum