bezier

Generating Bezier Control Points for an object

Hello everyone, I'm trying to draw objects using Bezier surfaces with openGL's evaluators. I am struggling with defining the control points for my objects. Can anyone please suggest ways to get the control points for an object? Is there some program that I can use to design my object then import the control points into a file that I can...

Drawing path by Bezier curves

Hello. I have a task - draw smooth curve input: set of points (they added in realtime) current solution: I use each 4 points to draw qubic Bezier curve (1 - strart, 2 and 3rd - control points, 4- end). End point of each curve is start point for the next one. problem: at the curves connection I often have "fracture" (angle) Can you t...

Reverse engineering a bezier curve

Given a few sample points on a bézier curve, is it possible to work out the set of possible curves these points may lie on? In my specific application there is a limited set of endpoints the curve may have, so I want to generate the set of possible curves, enumerate all of them and pick out all the ones which may end on a valid end poin...

Thick Bezier Curves in OpenGL

Hi all, I am writing a program in java using the jogl opengl bindings. I need to create a bezier curve that varies in thickness along the curve. So far I've only managed a thin bezier curve of single points. I'm pretty sure that this isnt going to be an easy thing to do, but i I have no idea where to even begin looking for the solution. ...

Circle approximations using Bezier curves.

Hello. I have 2 questions about bezier curves, and using them to approximate portions of circles. Given the unit circle arc (1,0)->(cos(a),sin(a)) where 0 < a < pi/2, will it result in a good approximation of this arc to find the bezier curve's control points p1, p2 by solving the equations imposed by the requirements B(1/3) = (cos(a/3...

bezier path widening

Hello. I have a bezier curve B with points S, C1, C2, E, and a positive number w representing width. Is there a way of quickly computing the control points of two bezier curves B1, B2 such that the stuff between B1 and B2 is the widened path represented by B? More formally: compute the control points of good Bezier approximations to B1...

Bezier's offset clipping

Hi! I'm trying to make a plug-in for Inkscape for cnc machining. And I need to make Bezier offset function. Inkscape operates with cubic Beziers. So here's what I've done. Offset of a single segment. Join of a two offseted segments. Splitting by intersection points of the offsetted curve. And I've stopped at clipping. My pl...

How to find orientation of a bezier curve?

How to find orientation (cw or ccw) of a closed curve that's formed by Bezier cubic segments? ...

Specifying the Tension in a Cubic Bezier Curve

I am attempting to create a PathGeometry that approximates a series of orthogonal line segments using cubic bezier curves in Wpf. I came across an article on msdn that describes Cardinal Splines in GDI+, which is almost exactly what I wish to accomplish. I have, for the most part succeeded, but I now need to implement a property which c...

Creating a "fractional" bezier spline?

Hi. I have a 4-control-point bezier curve that represents some timing stuff. The first control is fixed at (0, 0) and the last control is fixed at (1, 1). The two points in between define a bezier curve that specifies how I get from 0 to 1. Now I need to create a second curve, based off the first one. This second curve also needs to go...

Draw a QuadCurve2D passing the curve coordinates?

Hi all! I would like to draw a CubicCurve2D but I have just the coordinates where my curve pass. How can I get or calculate the "coordinate of the control points "? ...

Placement of "good" control points in Bezier curves

I've been working on this problem for awhile now, and haven't been able to come up with a good solution thusfar. The problem: I have an ordered list of three (or more) 2D points, and I want to stroke through these with a cubic Bezier curve, in such a way that it "looks good." The "looks good" part is pretty simple: I just want the wedge...

CubicCurve2D connecting two JInternalFrame instances

I have been trying to find a way (in Swing) to connect two JInternalFrames with a CubicCurve2D (otherwise known as a cubic bezier curve). The overall effect I'm trying to achive is an interface similar to Yahoo! Pipes (the curve should go from the bottom of one internal frame to the top of the other). Has anybody here done this before? ...

how to calculate control points on a bezier curve?

I do have a bezier curve, and at a certain point, I want a second bezier curve "branching off" the first curve in a smooth manner. Together with calculating the intersection point (with a percentage following the Bezier curve), I need also the control point (the tangent and weight). The intersection point is calculated with the following...

How to calculate a bezier curve with only start and end points?

I originally posted a much simpler (and less helpful) question, and have edited this to be more specific. This animation from wikipedia shows basically what I want to accomplish, however - I'm hoping to have it flipped around, where it starts progressing more towards the destination and "up" (in this image), and then arcs more directly ...

Checking if two cubic Bézier curves intersect

Hello guys, For a personal project, I'd need to find out if two cubic Bézier curves intersect. I don't need to know where: I just need to know if they do. However, I'd need to do it fast. I've been scavenging the place and I found several resources. Mostly, there's this question here that had a promising answer. So after I figured wha...

How to return all points along a bezier curve?

I posted a previous question about generating a bezier curve based on only the start and end points, and I was able thanks to the answers in that create a bezier curve using the information I have. This is the code that allows me to draw the types of curve that I want on a form. private void Form1_Paint(object sender, System.Windows.Fo...

Find a point, a given distance, along a simple cubic bezier curve. (On an iPhone!)

Imagine you have a completely normal four-point bezier curve (two points and two control points) created using curveToPoint:controlPoint1:controlPoint2: in your cocoa application. Here it is: How do you find points, along the curve? So, starting at the StartPoint, what are the x,y coords for a point that is distance D along the curve?...