Questions on Bézier curves, curves that are frequently used in computer graphics.

learn more… | top users | synonyms

8
votes
6answers
4k views

Is there an explicit form for cubic Bézier curves?

(See edits at the bottom) I'm trying to use Bézier curves as an animation tool. Here's an image of what I'm talking about: Basically, the value axis can represent anything that can be animated ...
7
votes
2answers
5k views

Arc Length of Bézier Curves

I posted this on gamedev.stackexchange.com earlier, but I didn't get any answers... and only a few views. EDIT: I've got two answers there (as of now), and I'm investigating them now. How can I find ...
14
votes
5answers
967 views

Polynomial approximation of circle or ellipse

Trying again, with a somewhat simpler sounding question, since my previous one (Generalizations of equi-oscillation criterion) got zero response: Let $F:[0,1] \to R^2$ be a parametric polynomial ...
4
votes
2answers
2k views

algorithm to calculate the control points of a cubic Bezier curve

I have all points where my curve pass through, but I need to get the coordinates of the control points to be able to draw the curve. How can I do to calculate this points?
2
votes
4answers
1k views

Find control point on piecewise quadratic Bézier curve

I need to write an OpenGL program to generate and display a piecewise quadratic Bézier curve that interpolates each set of data points: $$(0.1, 0), (0, 0), (0, 5), (0.25, 5), (0.25, 0), (5, 0), (5, ...
2
votes
5answers
2k views

Is it possible to build a circle with quadratic Bézier curves?

i'm searching for a curve type with a minimum of functionality and maximum of usability. I run into quadratic Bézier curves and i wonder, if its possible to draw a circle with it.
2
votes
2answers
711 views

Control points of offset bezier curve

If I have a cubic Bezier segment specified by two endpoints and two control points, how can I find an offset curve which is "parallel" to the original at some given distance, after i have determined ...
2
votes
2answers
441 views

Offseting a Bezier curve

I searched this site and I read that in general it is not possible to calculate offset of a Bezier curve. But is it possible to calculate the offset in some special cases? Obviously, if the Bezier ...
8
votes
1answer
1k views

Find points along a Bézier curve that are equal distance from one another

I'm trying to figure out a generic way of determining a series of points on a Bézier curve where all the points are the same distance from their neighboring points. By distance I mean direct distance ...
6
votes
5answers
236 views

Parabolas through three points

We can draw an infinite number of parabolas that pass through three given points $A$, $B$, $C$ (in that order). For each such parabola, we take the tangent lines at $A$ and $C$, and intersect them to ...
7
votes
0answers
663 views

How can I tell when two cubic Bézier curves intersect?

I'm working a little program that converges on vector-based approximations of raster images, inspired by Roger Alsing's genetic Mona Lisa. (I started on this after his first blog post two years ago, ...
0
votes
1answer
612 views

Find coordinates of equidistant points in Bezier curve

I have to find points (say 10 points) in Bezier curve with 2 control points such that they are at equidistant positions in the curve. Currently I am using the following formula which gives me points ...
5
votes
3answers
391 views

Find sagitta of a cubic Bézier-described arc

I have a situation where I have an arc that was mangled (irrelevant: by c#'s GraphicsPath.AddArc() function). The original arc is guaranteed to be circular, and the new data I have describes the ...
3
votes
1answer
197 views

Curve through four points — simple algebra??

The motivation for this is Bezier curves. But, if you don't know what these are, you can skip down to the last paragraph, where the problem is described in purely algebraic terms. Suppose I want to ...
3
votes
2answers
2k views

How elliptic arc can be represented by cubic Bézier curve?

If I have an arc (which comes as part of an ellipse), can I represent it (or at least closely approximate) by cubic Bézier curve? And if yes, how can I calculate control points for that Bézier curve?
2
votes
1answer
156 views

Equation for subsection of Bezier curve

Say I have a cubic Bezier curve, with a starting point s, an ending point e and control points ...
2
votes
1answer
352 views

Bezier unit tangent

What is the explicit formula for a unit tangent vector to a Bezier curve? I.e. if the formula for a Bezier curve is $\mathbf{B}(t) = \sum_{i=0}^n\binom{n}i(1-t)^{n-i}t^i\mathbf{P}_i$, what is its unit ...
2
votes
1answer
431 views

Determining the result of Boolean shape operations on closed Bézier shapes

Given two closed shapes made up of Bézier curves (and/or straight lines), I'm looking for an efficient way of calculating the resulting shape of the following Boolean operations: union difference ...
2
votes
3answers
680 views

Changing a bezier curve by dragging a point on the curve itself rather than a control point

I'm developing an iPhone app that allows users to cut out part of an image from its background. In order to do this, they'll connect a bunch of bezier curves together to form the clipping path. Rather ...
1
vote
3answers
367 views

Formula to get a control point closest for a given point what belongs to this quadratic curve

We have a quadratic bezier curve, with control point A (red start), control point B (red end), and yellow point X what belongs to the curve and what you actually "drag" - so it should be the closest ...
1
vote
2answers
664 views

bézier to f(x) polynomial function

I've got a 2D quadratic Bézier curve which, by construction, is a f(x) function : no loops, a single solution for each defined x. Is there a common mean to convert this curve to a 3rd degree ...
0
votes
2answers
58 views

Is it possible to generate a circle with a Bezier curve?

I am designing an algorithm that generates shapes of bezier curves. Each output are control points for a single curve. In some cases, it should return a circle. Which control points does the ...
0
votes
1answer
128 views

Degree elevation of weighted Bezier curve

I'm having difficulty understanding the derivation of the formula for degree elevation of a weighted Bezier curve given here. The only information that's given is to project a Bezier curve info affine ...
0
votes
1answer
304 views

Intersection of cubic bezier curve and circle

Let $B$ be a cubic Bézier curve with control points $P_0,P_1,P_2,P_3 \in \mathbb{R}^2$, and $C$ be a circle with center $P_C$ and radius $r$. How can I find all intersections of $B$ and $C$? Is ...
0
votes
1answer
252 views

Calculating points on the curve

I want to get the x and y coordinates of a curve..How can i do that... In the above image.Is it possible to calculate the intermediate points(one side) by knowing starting and ending point
0
votes
1answer
546 views

Finding two Bézier control points given three points

My apologies if this is asked in the wrong spot, I believe that this problem has a fairly simple solution... but it is beyond me. Given three points (A,B,C) drawn at random, how do you figure out the ...