Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bezier-curve]

The tag has no usage guidance.

2
votes
1answer
76 views

LoopBlinn Cubic Curve Rendering - Serpentine arteffect

I am trying to implement the Loop-Blinn cubic curve in java using the following source codes GPU-Curve-Rendering and WebCore. Both of them are showing few arteffects and i cannot figure out why. Here ...
1
vote
1answer
66 views

Wrong tangential directions for cubic bezier curve

I am well aware that there are several ways to find the tangents to a Bezier curve. However, I choose to just substitute the result of differentiating the Bezier curve equation. So, given four ...
1
vote
1answer
404 views

B spline curve generation in Python

I am using the de boors algorithm to generate B splines in python. However I am getting spikes in the final figure. I do not understand why this happens. I am posting my code here for reference <...
1
vote
0answers
36 views

Is “Bézier spline” just another name for “composite Bézier curve”?

I am reading a document about Bézier splines. A Bézier spline seems to be a combination of low-degree (typical 2, 3 or 4) Bézier curves. Reading the Wikipedia article about composite Bézier curves, it ...
4
votes
1answer
245 views

Simple Intersection Algorithm for Ray and 3D Bézier Curves of Varying Thickness

I'm trying to get an algorithm for intersecting a "tube" (a 3D cubic Bézier curve extruded by a possibly-changing radius) with the following required properties: Computes intersections of ray and a ...
1
vote
2answers
169 views

Does this 3D rendering method exist? How is it called? Is there any C++ algorithm for it?

I've been thinking about making my own 3D rendering engine in C++, but I don't know much about math that's required to do it. I'm not even sure if it's possible or if it even exists or how it's called....
1
vote
1answer
94 views

How does the Lane resienfield algorithm work?

I understand de castlejeau's algorithm and I am familiar although not fully experienced with B-Splines. I am trying to understand the geometric interpretation of B-splines through the algorithm (just ...
1
vote
1answer
538 views

Join two bezier curves so that the result is two-times continuously differentiable

I have a task to join two bezier curves, so that the resulting curve is two-times continuously differentiable. I have the cubic bezier Curve C with control points: c0 = (1,1) c1 = (3,4) c2 = (7,5) c3 =...
4
votes
2answers
130 views

First steps towards CAD standard curve fitting

I am interested in building a program to accomodate the following workflow: A user begins with an arbitrary vector/CAD shape, which they wish to transfer onto paper without using a printer (there are ...
1
vote
0answers
78 views
2
votes
1answer
588 views

Bezier Curve Tool Controlled by Mouse

So I have recently learned about Bezier Curves (quadratic & cubic) and have a thorough knowledge of how they work. In my graphics engine in DirectX I wanted to implement a Bezier Curve Tool ...
4
votes
2answers
133 views

Checking the correct offset direction for Bezier curve offset

I am implementing Bezier curve offset. My approach is simple: Given the handles, calculate the vectors normal to them Move the handle along the normal vector. If the new curve intersects the old one,...
9
votes
1answer
278 views

Apply distortion to Bézier surface

I am trying to simulate the image warp effect, that is used in Adobe Photoshop. The rectangular image is warped according to a cubic Bézier surface (in 2D, all Z components are 0). Having any Bézier ...
9
votes
2answers
1k views

Algorithm to find the center of a Bezier curve

I need to find the center of a Bezier curve to rotate it. I have a list of all points (control points, beginning and end, all points on the curve itself). How would I go about finding it's center?
5
votes
1answer
649 views

Bicubic bezier surface from 4 bezier curves

In the program I need to create, the user should specify the hull geometry of an aircraft wing and fuselage using cubic bezier polycurves. But to get to m bezier ...
6
votes
1answer
195 views

Silhouette curve for isometric surface of revolution

I am trying to figure out how to convert a flat representation of a curve into the silhouette of a surface of revolution in a isometric projection. In essence in want the planar cut of the surface ...
10
votes
2answers
338 views

Reliable test for intersection of two Bezier curves

How to reliably find out whether two planar Bezier curves intersect? By "reliably" I mean the test will answer "yes" only when the curves intersect, and "no" only when they don't intersect. I don't ...
6
votes
1answer
310 views

How to calculate matching roundness of two offset rectangles?

I have two rectangles — one with a fill (blue) and one with a stroke (red). The red rectangle is being offset (depending on the stroke width) so that it appears snug and outside the edge of the blue ...
18
votes
4answers
1k views

How to raytrace Bezier surfaces?

I tried this question on math.SE and surprisingly, the answer was "the equations are too nasty, just feed the function it to a numerical root-finder". But if you consider yourself "a graphics guy" ...
11
votes
2answers
652 views

Hardware-accelerated drawing of curved shapes

How to quickly draw a curved shape? by "quickly" I presume one should use hardware facilities as much as possible by "curved" I mean boundaries defined by either quadratic or cubic Bezier curves by "...