Content deleted Content added
GraziePrego (talk | contribs) Unsourced and not written in proper tone |
→Parallel curves of an implicit curve: parabola |
||
(16 intermediate revisions by 12 users not shown) | |||
Line 1:
{{Short description|Generalization of the concept of parallel lines}}
{{Distinguish|parallel transport}}
[[File:Offset-curves-of-sinus-curve.svg|300px|thumb|Parallel curves of the graph of <math>y=1.5 \sin(x)</math> for distances <math>d = 0.25, \dots, 1.5 </math>]]▼
[[File:Offset-definition-poss.svg|300px|thumb|Two definitions of a parallel curve: 1) envelope of a family of congruent circles, 2) by a fixed normal distance]]
[[File:Offset-of-a-circle.svg|thumb|The parallel curves of a circle (red) are circles, too]]▼
A '''parallel curve''' of a given (progenitor) [[curve]] is the [[envelope (mathematics)|envelope]] of a family of [[Congruence (geometry)|congruent]] (equal-radius) [[circle]]s centered on the curve.
It generalises the concept of ''[[parallel (geometry)|parallel (straight) lines]]''. It can also be defined as a curve whose points are at a constant ''[[normal distance]]'' from a given curve.<ref name="Willson">{{cite book
|title=Theoretical and Practical Graphics
Line 17 ⟶ 16:
These two definitions are not entirely equivalent as the latter assumes [[smoothness]], whereas the former does not.<ref name="DevadossO'Rourke2011">{{cite book|first1=Satyan L.|last1= Devadoss|author1-link= Satyan Devadoss |first2=Joseph |last2=O'Rourke|author2-link=Joseph O'Rourke (professor)|title=Discrete and Computational Geometry|url=https://books.google.com/books?id=InJL6iAaIQQC&pg=PA128|year=2011|publisher=Princeton University Press|isbn=978-1-4008-3898-1|pages=128–129}}</ref>
▲[[File:Offset-of-a-circle.svg|thumb|The parallel curves of a circle (red) are
In [[computer-aided design]] the preferred term for a parallel curve is '''offset curve'''.<ref name="DevadossO'Rourke2011"/><ref name="SendraWinkler2007"/><ref name="Agoston2005m">{{cite book|first=Max K.|last= Agoston|title=Computer Graphics and Geometric Modelling: Mathematics|url=https://books.google.com/books?id=LPsAM-xuGG8C&pg=PA586|year=2005|publisher=Springer Science & Business Media|isbn=978-1-85233-817-6|page=586}}</ref> (In other geometric contexts, the term [[offset (disambiguation)|
In the area of 2D [[computer graphics]] known as [[vector graphics]], the (approximate) computation of parallel curves is involved in one of the fundamental drawing operations, called stroking, which is typically applied to [[polyline]]s or [[polybezier]]s (themselves called paths) in that field.<ref name="Kilgard">{{cite web |author=Mark Kilgard | title=CS 354 Vector Graphics & Path Rendering | website=www.slideshare.net | date=2012-04-10 | url=https://www.slideshare.net/Mark_Kilgard/22pathrender |page=28}}</ref>
▲[[File:Offset-curves-of-sinus-curve.svg|300px|thumb|Parallel curves of the graph of <math>y=1.5 \sin(x)</math> (in red) for distances <math>d = 0.25, \dots, 1.5 </math>]]
Except in the case of a line or [[circle]], the parallel curves have a more complicated mathematical structure than the progenitor curve.<ref name="Willson"/> For example, even if the progenitor curve is [[Smooth function|smooth]], its offsets may not be so; this property is illustrated in the top figure, using a [[sine curve]] as progenitor curve.<ref name="DevadossO'Rourke2011"/> In general, even if a curve is [[rational curve|rational]], its offsets may not be so. For example, the offsets of a parabola are rational curves, but the offsets of an [[ellipse]] or of a [[hyperbola]] are not rational, even though these progenitor curves themselves are rational.<ref name="SendraWinkler2007">{{cite book|first1=J. Rafael |last1=Sendra|first2=Franz|last2= Winkler|first3=Sonia |last3=Pérez Díaz|title=Rational Algebraic Curves: A Computer Algebra Approach|url=https://books.google.com/books?id=puWxs7KG2D0C&pg=PA10|year=2007|publisher=Springer Science & Business Media|isbn=978-3-540-73724-7|page=10}}</ref>
The notion also generalizes to 3D [[surface (mathematics)|surface]]s, where it is called an '''offset surface''' or '''parallel surface'''.<ref name="Agoston2005"/> Increasing a [[solid (geometry)|solid]] volume by a (constant) distance offset is sometimes called ''dilation'' (similar to the [[dilation (morphology)|dilation]] image operation).<ref name="jarek">http://www.cc.gatech.edu/~jarek/papers/localVolume.pdf, p. 3</ref> The opposite operation is sometimes called ''shelling''.<ref name="Agoston2005">{{cite book|first=Max K.|last= Agoston|title=Computer Graphics and Geometric Modelling|url=https://books.google.com/books?id=fGX8yC-4vXUC&pg=PA645|year=2005|publisher=Springer Science & Business Media|isbn=978-1-85233-818-3|pages=638–645}}</ref> Offset surfaces are important in
== Parallel curve of a parametrically given curve ==
Line 39 ⟶ 40:
*<math>k_d(t)=\frac{k(t)}{1+dk(t)},\quad</math> with <math>k(t)</math> the [[curvature]] of the given curve and <math>k_d(t)</math> the curvature of the parallel curve for parameter <math>t</math>.
*<math>R_d(t)=R(t) + d,\quad</math> with <math>R(t)</math> the [[curvature#Curvature of plane curves|radius of curvature]] of the given curve and <math>R_d(t)</math> the radius of curvature of the parallel curve for parameter <math>t</math>.
* When they exist, the [[Osculating circle|osculating circles]] to parallel curves at corresponding points are concentric. <ref>Fiona O'Neill: [https://fionasmathblog.com/2022/04/26/planar-bertrand-curves-with-pictures/ ''Planar Bertrand Curves (with Pictures!).''] {{Webarchive|url=https://web.archive.org/web/20221011143632/https://fionasmathblog.com/2022/04/26/planar-bertrand-curves-with-pictures/ |date=2022-10-11 }}</ref>
*As for [[parallel (geometry)|parallel lines]], a normal line to a curve is also normal to its parallels.
*When parallel curves are constructed they will have [[Cusp (singularity)|cusp]]s when the distance from the curve matches the radius of [[curvature]]. These are the points where the curve touches the [[evolute]].
*If the progenitor curve is a boundary of a planar set and its parallel curve is without self-intersections, then the latter is the boundary of the [[Minkowski sum]] of the planar set and the disk of the given radius.
If the given curve is polynomial (meaning that <math>x(t)</math> and <math>y(t)</math> are polynomials), then the parallel curves are usually not polynomial. In CAD area this is a drawback, because CAD systems use polynomials or rational curves. In order to get at least rational curves, the square root of the representation of the parallel curve has to be solvable. Such curves are called
''Pythagorean-Hodograph Curves: Algebra and Geometry Inseparable (Geometry and Computing).'' Springer, 2008, {{ISBN|978-3-540-73397-3}}.</ref>
== Parallel curves of an implicit curve ==
[[File:Offset-of-implicit-curve-c4.svg|250px|thumb|Parallel curves of the implicit curve (red) with equation <math>x^4+y^4-1=0</math>]]
For example:
: ''Line'' <math>\; f(x,y)=x+y-1=0\; </math> → distance function: <math>\; h(x,y)=\frac{x+y-1}{\sqrt{2}}=d\; </math> (Hesse normalform)
Line 74 ⟶ 75:
* A [[parabola]] has as (two-sided) offsets [[rational curve]]s of degree 6.
* A [[hyperbola]] or an [[ellipse]] has as (two-sided) offsets an [[algebraic curve]] of degree 8.
* A [[Bézier curve]] of degree {{mvar|n}} has as (two-sided) offsets [[algebraic curve]]s of degree {{math|4''n'' − 2}}. In particular, a cubic
==Parallel curve to a curve with a corner==
Line 102 ⟶ 103:
In general, the parallel curve of a [[Bézier curve]] is not another Bézier curve, a result proved by Tiller and Hanson in 1984.<ref>{{cite journal |last1=Tiller |first1=Wayne |last2=Hanson |first2=Eric |title=Offsets of Two-Dimensional Profiles |journal=IEEE Computer Graphics and Applications |year=1984 |volume=4 |issue=9 |pages=36–46 |doi=10.1109/mcg.1984.275995|s2cid=9046817 }}</ref> Thus, in practice, approximation techniques are used. Any desired level of accuracy is possible by repeatedly subdividing the curve, though better techniques require fewer subdivisions to attain the same level of accuracy. A 1997 survey by Elber, Lee and Kim<ref>{{cite journal |last1=Elber |first1=Gershon |last2=Lee |first2=In-Kwon |last3=Kim |first3=Myung-Soo
Another efficient algorithm for offsetting is the level approach described by
Line 127 ⟶ 128:
The problem generalizes fairly obviously to higher dimensions e.g. to offset surfaces, and slightly less trivially to [[pipe surface]]s.<ref name="PottmannWallner2001">{{cite book|first1=Helmut|last1=Pottmann|first2=Johannes|last2=Wallner|title=Computational Line Geometry|url=https://books.google.com/books?id=6ZrqcYKgtE0C&pg=PA303|year=2001|publisher=Springer Science & Business Media|isbn=978-3-540-42058-3|pages=303–304}}</ref> Note that the terminology for the higher-dimensional versions varies even more widely than in the planar case, e.g. other authors speak of parallel fibers, ribbons, and tubes.<ref name="Chirikjian2009">{{cite book|author1-link=Gregory S. Chirikjian|first=Gregory S.|last=Chirikjian|title=Stochastic Models, Information Theory, and Lie Groups, Volume 1: Classical Results and Geometric Methods|year=2009|publisher=Springer Science & Business Media|isbn=978-0-8176-4803-9|pages=171–175}}</ref> For curves embedded in 3D surfaces the offset may be taken along a [[geodesic]].<ref name="Sarfraz2003">{{cite book|editor-first=Muhammad|editor-last=Sarfraz|title=Advances in geometric modeling|url=https://books.google.com/books?id=kfZQAAAAMAAJ&pg=PA72|year=2003|publisher=Wiley|isbn=978-0-470-85937-7|page=72}}</ref>
Another way to generalize it is (even in 2D) to consider a variable distance, e.g. parametrized by another curve.<ref name="barn"/> One can for example stroke (envelope) with an ellipse instead of circle<ref name="barn"/> as it is possible for example in [[METAFONT]].<ref>{{Cite journal |last=Kinch |first=Richard J. |date=1995 |title=MetaFog: Converting METAFONT Shapes to Contours |url=https://www.tug.org/TUGboat/tb16-3/tb48kinc.pdf
[[File:Envelope of ellipses.png|thumb|An envelope of ellipses forming two general offset curves above and below a given curve]]
More recently [[Adobe Illustrator]] has added somewhat similar facility in version [[CS5]], although the control points for the variable width are visually specified.<ref>http://design.tutsplus.com/tutorials/illustrator-cs5-variable-width-stroke-tool-perfect-for-making-tribal-designs--vector-4346 application of the generalized version in Adobe Illustrator CS5 (also [http://tv.adobe.com/watch/learn-illustrator-cs5/using-variablewidth-strokes/ video])</ref> In contexts where it's important to distinguish between constant and variable distance offsetting the acronyms CDO and VDO are sometimes used.<ref name="jarek"/>
Line 206 ⟶ 207:
*[http://mathworld.wolfram.com/ParallelCurves.html Parallel curves on MathWorld]
*[http://xahlee.org/SpecialPlaneCurves_dir/Parallel_dir/parallel.html Visual Dictionary of Plane Curves] Xah Lee
{{Differential transforms of plane curves}}
|