Discussion:
Bezier curve
(too old to reply)
b***@coolfone.comze.com
2012-05-24 21:31:59 UTC
Permalink
Is it possible to use a Bezier curve with one or two control points to represent a perfectly rounded corner?
Rui Maciel
2012-05-25 00:29:49 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
A Bezier curve with two control points represents a straight line.

So, no.


Rui Maciel
b***@coolfone.comze.com
2012-05-25 15:16:44 UTC
Permalink
Post by Rui Maciel
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
A Bezier curve with two control points represents a straight line.
So, no.
Rui Maciel
Lol. Ok. Same question but with 3 control points.
Rui Maciel
2012-05-25 15:34:52 UTC
Permalink
Post by b***@coolfone.comze.com
Lol. Ok. Same question but with 3 control points.
It really depends on what's your definition of "perfectly rounded corner".
If you are thinking of a circular arc then a Bezier curve can't represent it
exactly. Yet, it is quite possible to get an approximation of that curve.
So, if you are willing to tolerate an arbitrary margin of error then you can
get a Bezier curve to mimick a "perfectly round corner". And the greater
the number of control points/line segments, the smaller the approximation
error.


Hope this helps,
Rui maciel
Sergiy Kanilo
2012-05-25 21:17:02 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
It is not possible to build exact arc with Bezier curve,
but you can have good approximation.
For 90 degrees angle, place end points on rays of the angle
at R distance from the vertex, and control points at 0.44 R.

Cheers,
Sergiy
Kaba
2012-05-26 00:37:49 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control
points to represent a perfectly rounded corner?
I'm not an expert, but I think you can do it with rational Bezier curves
(with more than 2 control points). Rounded corner here interpreted as a
quarter of a circle.
--
http://kaba.hilvi.org
Nobody
2012-05-26 16:13:35 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
A rational Bezier curvecan exactly represent a circular arc. E.g. the
quadratic curve defined by the points

[(0:1:1), (k:k:k), (1:0:1)] where k=1/sqrt(2)

forms the 90-degree arc spanning the first quadrant.

In homogeneous coordinates, the unit circle corresponds to a cone with
its apex at the origin and whose intersection with the w=1 plane is the
unit circle, so any curve on the surface of that cone corresponds to a
circular arc. A parabola is one such curve, and can be expressed as a
polynomial.
Noskosteve
2012-10-26 23:56:20 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to represent a perfectly rounded corner?
I know this is after the fact, but...
This can be *approximated* quite well with either a Quadratic (3 total points) or Cubic (4 total points) Bezier. The Quadratic version is in my free on-line book (On Interpolation), in the appendix (Site below). I see I neglected to get the Quadrtic version into the book.

http://k9dci.home.comcast.net/site/?/page/Piecewise_Polynomial_Interpolation

If you really, really, really need it badly, contact me via my site and I'll dig out the info for you.
--
Regards, Steve, Noskowicz

More Details, Features and Downloads at:
http://k9dci.home.comcast.net/
Nobody
2012-10-27 15:29:01 UTC
Permalink
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
I know this is after the fact, but... This can be *approximated* quite
well with either a Quadratic (3 total points) or Cubic (4 total points)
Bezier. The Quadratic version is in my free on-line book (On
Interpolation), in the appendix (Site below). I see I neglected to get
the Quadrtic version into the book.
It's unfortunate that your book doesn't discuss rational curves, as they
allow circular arcs (and, in fact, any conic section) to be represented
exactly, are directly supported by 3D graphics APIs such as OpenGL and
DirectX (as a direct consequence of using homogeneous coordinates), and
are among the most widely-used curves (NURBS are probably the most common
curved primitives in 3D modelling software).
Noskosteve
2012-11-04 02:15:47 UTC
Permalink
Post by Nobody
Post by b***@coolfone.comze.com
Is it possible to use a Bezier curve with one or two control points to
represent a perfectly rounded corner?
I know this is after the fact, but... This can be *approximated* quite
well with either a Quadratic (3 total points) or Cubic (4 total points)
Bezier. The Quadratic [I meant Cubic] version is in my free on-line book (On
Interpolation), in the appendix (Site below). I see I neglected to get
the Quadratic version into the book.
It's unfortunate that your book doesn't discuss rational curves, as they
allow circular arcs (and, in fact, any conic section) to be represented exactly,
are directly supported by 3D graphics APIs such as OpenGL and DirectX
(as a direct consequence of using homogeneous coordinates), and are
among the most widely-used curves (NURBS are probably the most common
curved primitives in 3D modelling software).
Steve Adds:
Not really. I addressed fundamentals and explain my rationale in the preface as well as a “Why I did it” document on my site. I provided understanding of the math concepts, not instructions for any specific computer language or graphics engine capability.
While all you say is true, an understanding of NURBS was beyond my need and I believe there are (or were) already enough sources describing NURBS. I saw a need for a simplified path to understanding the basics and the reader could, then, go on, if desired, to the more advanced topics with a basic understanding under his belt.
There had to be others like me that only needed a better path to understand the basics. In addition, doing a good job explaining NURBS would require considerable effort that I had no need for and never did try to understand. Writing well took considerable time as it was. For Laser light show graphics, approximations work very well. In fact some of the simplifications in motion control are alarmingly trivial, yet extremely effective on the screen. The motion of a bouncing ball with only 3 different speeds (six velocities) looks completely smooth.

The quest for the perfect circle is a prevalent one in postings and the literature. It is an admirable goal, but my original graphics engine ran with a clock speed of just under 1 MHz. (yes ONE MEGA) and computational efficiency was first priority. I was, in fact, counting processor cycles and *not* using some of the processors (6809) advanced indexing instructions because other methods of doing it myself proved faster. Page 144 in my Appendix shows a cubic half circle with 0.5% radial error and it is quite indistinguishable from a true circle. A cubic quarter circle has 0.02% radial error. For on-screen graphics that will be viewed, there is no need for a perfect fit in shape nor motion.

Regards, Steve
I just posted a "Shameless Plug" that has links to the book.

Loading...