Questions tagged [bezier]

A Bézier curve is a parametric curve frequently used in computer graphics and related fields. Generalizations of Bézier curves to higher dimensions are called Bézier surfaces, of which the Bézier triangle is a special case.

A Bézier curve is a parametric curve frequently used in computer graphics and related fields. Generalizations of Bézier curves to higher dimensions are called Bézier surfaces, of which the Bézier triangle is a special case.

In vector graphics, Bézier curves are used to model smooth curves that can be scaled indefinitely. "Paths," as they are commonly referred to in image manipulation programs, are combinations of linked Bézier curves. Paths are not bound by the limits of rasterized images and are intuitive to modify. Bézier curves are also used in animation as a tool to control motion.

Bézier curves are widely used in computer graphics to model smooth curves. As the curve is completely contained within the convex hull of its control points, the points can be graphically displayed and used to manipulate the curve intuitively. Affine transformations such as translation, and rotation can be applied on the curve by applying the respective transform on the control points of the curve. Furthermore, the convex hull of the control points acts as a bounding region for quick visibility tests; if the convex hull is not visible, then the Bézier curve is also not.

Quadratic and cubic Bézier curves are most common; higher degree curves are more expensive to evaluate. When more complex shapes are needed, low order Bézier curves are connected together. This is commonly referred to as a "path" in vector graphics standards (like SVG) and vector graphics programs (like Adobe Illustrator and Inkscape). To guarantee smoothness, the control point at which two curves meet must be on the line between the two control points on either side.

Bézier curves can be Linear (order 1), Quadratic (order 2), Cubic (order 3, the most common form in drawing and graphics software), and of higher order (more than 3).

Important Links:

1289 questions
-1
votes
2 answers

Bezier curve using opengl C++

I need to plot a point in Bezier Curve under this Curve. So the output will look like this ب I already did the curve but I need to know how to plot another point under this curve shown in the picture below. Code: #include #include…
Adham Salem
  • 13
  • 1
  • 5
-1
votes
1 answer

Trying to code random bezier curve motion of multiple movieclip instances in AS3

Completely new to AS3, still learning to ropes, so please bear with me! I am trying to make a game using ActionScript 3.0 that will display 5 grasshoppers jumping around on the stage in random positions. I have tried using TweenLite and TweenMax…
-1
votes
1 answer

curve drawing with Cocos2D for iPhone

I'm making a simple game using Cocos2D. The user can touch and trace a path for small moving objects. The objects then follow the path. This is similar to the Flight Control game mechanic. how i can move the object like that.please help me to get…
Appsunic
  • 192
  • 1
  • 10
-1
votes
1 answer

colliding a ccsprite i.e.,missile with other ccsprite i.e.,aeroplane where both are moving in bezier path actions in cocos 2d

An aeroplane which is moving in a bezier path action should collide by a missile which also moves in a bezier path when a ccmenu button is clicked. The problem is when the missile is launched the plane is on one position but when it(missile)…
-1
votes
1 answer

Drawing Bezier Curve issue with not ending in last point

I'm making program at school for drawing a Bezier curve (only for n form <1,9>). For drawing I am using a brute force algorithm from the definition of a curve (for simplicity). I know that De Casteljau would better. When I count points at according…
user1097772
  • 3,499
  • 15
  • 59
  • 95
-2
votes
1 answer

Generating heights from a Bezier curve or bell / cubic/ quadratic function over a range of integers?

I want to generate a set of heights that fit a the onto a bell shaped curve for an array of points [0,1,2,3,4,5,6,7,8,9, 10]. I don't have a formula for the curve, all though this question does have various implementations. The 0 should be at the…
Ole
  • 41,793
  • 59
  • 191
  • 359
-2
votes
1 answer

Bezier curve, question for the new control point

For a Bezier curve I know the P0,P1 and the control point P2. (and I can calculate the Q0) I want to find for a new curve, with Q1(t=0,25) == Q0(t=0,25), P0==Q0(t=0.25) and P1==Q0(t=0.75), the new control point P2. I re-edit my initial post. I've…
KostasA
  • 5,204
  • 6
  • 23
  • 29
-2
votes
1 answer

How to draw a quartic Bezier curve in inkscape

When I draw a cubic bezier curve with 4 control points, I choose regular bezier path, draw a line, then drag 2 handles out. But now, I need draw a quartic curve with 5 control points. I don't know how to do it. How can I add the 5th control…
Jun Zhou
  • 5
  • 2
-2
votes
1 answer

Why is G3 continuity only achievable between two edges?

Why is G3 continuity only achievable between two edges? For example, curve 1/2/3, 4/5/6, 7/8/9, 10/11/12 are all G3 continuous. The center surface is built with G3 constraint on edge 5/2. Since curve 1/2/3, 4/5/6 are G3 already, how come edge 8/11…
June Wang
  • 499
  • 2
  • 6
  • 20
-2
votes
1 answer

Get coordinates of half of the length of the bezier curve

I have an ellipse which is drawn with 4 beziercurves. I want to draw a point on every beziercurve. The point should be in the middle of the length of the beziercurve (half of the length of the bezier curve). How do I get the coordinates of this…
coder041
  • 1
  • 1
-2
votes
1 answer

trace a simple object using bezier curves, in canvas or sonic.js format

I'd like to trace the outline of a simple object using arcs and bezier curves. Easy to do using Photoshop/pen tool, but I need the actual coordinates of the curves in the following format: ['bezier', startX, startY, endX, endY, cp1x, cp1y, cp2x,…
UltrasoundJelly
  • 1,845
  • 2
  • 18
  • 32
-3
votes
1 answer

Bezier Curve - Using (Graph)X to Solve Y

I am trying to take two points and two tangents and solve for y given x. However, all the resources I have found online for doing so online are a bit different than what I need. All of the resources have allowed me to find x and y given a percentage…
-3
votes
1 answer

Motion Path / Motion Guide in iPhone?

I want an image to move according to the path drawn by programming codes. I have asked a similar question (https://stackoverflow.com/questions/1571182/how-to-limit-a-uiimageview-to-move-in-a-specific-path) before, but I found that I asked in a wrong…
Raptor
  • 53,206
  • 45
  • 230
  • 366
-4
votes
1 answer

How to implement adaptive subdivision algorithm for curve in C

My homework is to write a C program with openGL/Glut which, after getting groups of 4 points by mouse click (points with 3 coordinates), should draw a bezier curve with adaptive algorithm. At a theoretical level it's clear how the algorithm works…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
1 2 3
85
86