curve

Equidistant points across Bezier curves

Currently, I'm attempting to make multiple beziers have equidistant points. I'm currently using cubic interpolation to find the points, but because the way beziers work some areas are more dense than others and proving gross for texture mapping because of the variable distance. Is there a way to find points on a bezier by distance rath...

Fast Method to Intersect two Integer Quadratic Beziers?

Given two Quadratic Beziers in 2D with integer coordinates, what is the best way to find their intersection point(s)? Also interesting is an early rejection if they do not intersect. If it makes it easier, they can both be assumed to be monotone in both x and y. Only intersections that are representable by subdivision to integers of the ...

Convert a quadratic curve points to polynomial representation?

I have the X,Y of 2 end points and 1 bezier point, of a Quadratic Bezier curve. Using this data, how can I derive the polynomial representation of the curve? ...

Curve Fitting

Given two points say (1,2,3) and (4,7,8). The endpoint tangents at these points are also given as inputs say pi/4 and -pi/2 respectively. How to fit a helix of arc length 2 between these points? How to implement this in Matlab? ...

GDI+ Curve Wrapping

Hi, I'm creating a graphing application using ZedGraph, which uses GDI+. If a curve is overflowing past the chart, I wrap it around to the other side. I do this by clipping the chart and just redrawing the curve as many times as it needs to wrap. for(int i=startShift; i<=endShift; i++); { g.TranslateTransform(chartWidth,0); g.Dr...

Way to draw NSString on a curved path?

I have been looking for any example code for drawing a UILabel (or just an NSString or something) on a curved path, but have come up empty handed. Does anyone know whether it's possible to draw text on a curved path, like a circle or something, without using separate pieces of graphics for every single letter? ...

Drawing semi-transparent curves in OpenGL ES

My goal is to draw a semi-transparent curve. User moves cursor and I draw the curve under the cursor. I've tried to use antialiased points to draw line, but I don't know how to make it transparent. I can't use lines to draw the curve, because can't set both antialiasing and line width. Should I use triangle strip to draw curve? ...

iPhone Quartz curve jaggy and has dark border

I've got a weird issue with quartz. The first time I run the piece of code below, the line will be drawn like the line to the right in the image. The second time (and every time after) these lines are executed, the line will look like the line to the left. Why does it look like that? It's all jaggy and seems to have a dark border. If you...

Bézier curve compute point from one axis

I have a Cubic Bézier curve. But I have a problem when I need only one point. I have only value from the X-axis and want to find a value that coresponds to Y-axis to that point. Or find the t step, from it I can easely calculate the Y-axis. Any clue how to do it? Or is there any formula to do this? ...

Dynamic Curves in silverlight

I am writing a graphic editor kind of thing in silverlight 3 to customize tee shirts. there is a functionality to create curved lines i.e. user draws a straight line and then there is a slider to control the radius of curve and as user changes the radius the curve should be update accordingly. I am really unable to find any link on the ...

Drag a bezier curve to edit it.

You will understand what I mean if you use graphic editing programs like Gimp or Photoshop. To edit a curve on those programs (which probably is Bezier Curve), we can click on the curve, drag the mouse and the curve is changed accordingly. I suspect all the things behind this mechanism are concerned with vectors, but I couldn't find any ...

javascript-based rounded cornered fieldset with legend

Is there any fieldset with legend that has curvy corners? I was looking on the internet for one, but too unlucky to find any. ...

How to calculate the curve of a linear floating point number in Javascript?

How do I calculate a curve of a linear floating point number (0 to 1) and get another floating point number as a result? What I want is up until the half (0..0.5), to be inversed logarithmic and high than that to be logarithmic like a curve according to the given linear value. ...

An extended Bezier Library or Algorithms of bezier operations

Hi, Is there a library of data structures and operations for quadratic bezier curves? I need to implement: bezier to bitmap converting with arbitrary quality optimizing bezier curves common operations like subtraction, extraction, rendering etc. languages: c,c++,.net,python Algorithms without implementation (pseudocode or etc) could ...

Recognising the type of graph by given set of points.

I'm trying to design a program that draws graphs given a set of points (x, y), and it also should recognize the curve (straight line, hyperbole, parabola), with only the help of the points. Is there an algorithm to do that? ...

OpenGL: How to draw Bezier curve of degree higher then 8?

I am trying to draw high order Bezier Curve using OpenGL evaluators: glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 30, &points[0][0]); glMapGrid1f(30, 0, 1); glEvalMesh1(GL_LINE, 0, 30); or glBegin(GL_LINE_STRIP); for (int i = 0; i <= 30; i++) glEvalCoord1f((GLfloat) i/30.0); glEnd(); When number of points exceeds 8, curve disappears....

Excel Template with Normal Curve or Bell Curve

Hi Guys, I am looking for an excel template where in I fill in some random set of number in a column which in turn will give me a Mean, Standard Deviation and also a Normal Distribution or Bell Curve Graph. Thanks in Advance. ...

Closest point on a cubic Bezier curve?

How can I find the point B(t) along a cubic Bezier curve that is closest to an arbitrary point P in the plane? ...

trackroll does not works as i want or expect to do,blackberry

i am working on blackberry curve 8300 i have added some components in the main screen,now i want to move the focus vertically when the trackball moves up or down and move the focus horizontally when track-Wheel moves left or right. ================================================================================== --Title area that con...

variable row size list field in blackberry

i have created an application that contains a list field(custom) i want if a certain condition is satisfied then rowheight should be 100 else it should be 50 how can i do that i tried setRowHeight(index,size); but it dnt worked.Moreover its undocumented toooooooooo.. any help will be appreciated ...