Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1032665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:06:47+00:00 2026-05-16T14:06:47+00:00

So I need to find out where the control points would be for a

  • 0

So I need to find out where the control points would be for a cubic bezier curve when only knowing points on the curve, the points can lie in 3D. It would be ideal if I could do this for any number of points on the curve. Most of what I have found deals only with 2D, or only for 4 points.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:06:48+00:00Added an answer on May 16, 2026 at 2:06 pm

    Let me see if I understand you:
    you want an interpolating Bezier curve,
    going through a given set of points P0 P1 …
    but drawn as Bezier curves, with a function like

    bezier4( nstep, Pj, Cj, Dj, Pj+1 )  -- control points Cj, Dj
    

    That is, you want to derive two Bezier control points Cj, Dj
    for each piece Pj — Pj+1 ?

    One way of deriving such control points is to use the Bernstein polynomial basis

    b0(t) = (1-t)^3
    b1(t) = 3 (1-t)^2 t,
    b2(t) = 3 (1-t) t^2
    b3(t) = t^3
    
    bezier4(t) = b0(t) P0  +  b1(t) C0  +  b2(t) D0  +  b3(t) P1
    = P0 at t=0, tangent --> C0
    = P1 at t=1,  tangent <-- D0
    

    and look up or derive the interpolating aka Catmull-Rom spline
    that goes through P-1 P0 P1 P2:

    b0(t) P0
    + b1(t) (P0 + (P1 - P-1) / 6)
    + b2(t) (P1 - (P2 - P0) / 6)
    + b3(t) P1
    = P0 at t=0, P1 at t=1
    

    We want bezier4(t) to be exactly the same curve as CatmullRom(t), so:

    C0 = P0 + (P1 - P-1) / 6
    D0 = P1 - (P2 - P0) / 6
    

    Given N points P0 P1 … (in 2d 3d … anyd), take them 4 at a time;
    for each 4, that formula gives you 2 control points Cj, Dj for

    bezier4( nstep, Pj, Cj, Dj, Pj+1 )
    

    Does this make sense, is it what you want ?
    (For a bounty, I’d cobble some Python / numpy together.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to find out automationid for key board values? how to send keystrokes
I need to find out the value passed into an indexer. My code (c#)
I need to find out how many times the number greater than or less
I need to find out the maximum and minimum value in a line by
I need to find out whether my apps are being flagged as viruses by
I need to find out the word in an image where user has clicked.
I need to find out which account is running one of my websites application
I need to find out how many even values are contained in a binary
I need to find out the pixel position of one element in a list
I need to find out, in code (C++ on Windows 7), whether my video

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.