Spline curves with a shape parameter Reporter: Hongguang Zhou April. 2rd, 2008.

Slides:



Advertisements
Similar presentations
Anupam Saxena Associate Professor Indian Institute of Technology KANPUR
Advertisements

Splines IV – B-spline Curves
Lecture Notes #11 Curves and Surfaces II
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
Lecture 10 Curves and Surfaces I
Anupam Saxena Associate Professor Indian Institute of Technology KANPUR
Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 13: NURBs, Spline Surfaces Ravi Ramamoorthi Some material.
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
KMMCS, April. 2003, Lee Byung-Gook, Dongseo Univ., Spline Methods in CAGD Lee Byung-Gook Dongseo Univ.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Splines II – Interpolating Curves
Rational Bezier Curves
Offset of curves. Alina Shaikhet (CS, Technion)
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
Normal based subdivision scheme for curve and surface design 杨勋年
Cubic Bezier and B-Spline Curves
A story about Non Uniform Rational B-Splines E. Shcherbakov.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Computer Graphics (Fall 2005) COMS 4160, Lecture 7: Curves 2
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
09/16/02 Dinesh Manocha, COMP258 Surfaces Locally a 2D manifold: i.e. approximating a plane in the ngbd. of each point. A 2-parameter family of points.
CS Subdivision I: The Univariate Setting Peter Schröder.
Curve Modeling Bézier Curves
Curve Modeling B-Spline Curves
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 16.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to Computer Graphics with WebGL
Vector Computer Graphic. Vector entities Line Circle, Ellipse, arc,… Curves: Spline, Bezier’s curve, … … Areas Solids Models.
Splines Vida Movahedi January 2007.
NUBS by Brian Wyvill What’s that?. University of Calgary GraphicsJungle Project ENEL 555 B-Splines page 2 Uniform B-Splines Basis functions for B-Splines.
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
On the degree elevation of B-spline curves and corner cutting Guozhao Wang,Chongyang Deng Reporter : Jingjing Yu.
Geometric Modelling 2 INFO410 & INFO350 S Jack Pinches
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Keyframing and Splines Jehee Lee Seoul National University.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
Computer Graphics (Fall 2003) COMS 4160, Lecture 10: Curves 1 Ravi Ramamoorthi
11/26/02(C) University of Wisconsin Last Time BSplines.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
(c) 2002 University of Wisconsin
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Lecture 13 of 42 Wednesday, 15 February 2006 William.
SIAM Conference on Geometric Desing & Computing Approximation of spatial data with shape constraints Maria Lucia Sampoli University of Siena, Italy.
On the singularity of a class of parametric curves Speaker: Xu Hui
Piecewise Polynomial Parametric Curves Sun-Jeong Kim.
Graphics Programming 2003, Lee Byung-Gook, Dongseo Univ., Graphics Programming Lee Byung-Gook Dongseo Univ.
© University of Wisconsin, CS559 Spring 2004
Lecture 22: B Spline Curve Properties
Representation of Curves & Surfaces
(Spline, Bezier, B-Spline)
CSE 167 [Win 17], Lecture 10: Curves 2 Ravi Ramamoorthi
Chapter XVII Parametric Curves and Surfaces
CSCI 440 Computer Graphics
Three-Dimensional Object Representation
PPT3: B-spline Curves and Surfaces
Presentation transcript:

Spline curves with a shape parameter Reporter: Hongguang Zhou April. 2rd, 2008

Problem: To adjust the shape of curves, To change the position of curves. Weights in rational Bézier, B-spline curves are used.

Problem: Spline has some deficiencies: e.g. To adjust the shape of a curve, but the control polygon must be changed.

Motivation: When the control polygons of splines are fixed Can rectify the shape of curves only by adjusting the shape parameter.

Outline Basis functions Trigonometric polynomial curves with a shape parameter Approximability Interpolation

References Quadratic trigonometric polynomial curves with a shape parameter Xuli Han (CAGD 02) Cubic trigonometric polynomial curves with a shape parameter Xuli Han (CAGD 04) Uniform B-Spline with Shape Parameter Wang Wentao, Wang Guozhao (Journal of computer-aided design & computer graphics 04)

Quadratic trigonometric polynomial curves with a shape parameter Xuli Han CAGD. (2002) 503 – 512

About the author Department of Applied Mathematics and Applied Software, Central South University, Changsha Subdecanal, Professor Ph.D. in Central South University, 94 CAGD, Mathematical Modeling

Previous work Lyche, T., Winther, R., A stable recurrence relation for trigonometric B- splines. J. Approx. Theory 25, 266 – 279. Lyche, T., Schumaker, L.L., Quasi-interpolants based on trigonometric splines. J. Approx. Theory 95, 280 – 309. Pe ñ a, J.M., Shape preserving representations for trigonometric polynomial curves. Computer Aided Geometric Design 14,5 – 11. Schoenberg, I.J., On trigonometric spline interpolation. J. Math. Mech. 13, 795 – 825. Koch, P.E., Multivariate trigonometric B-splines. J. Approx. Theory 54, 162 – 168. Koch, P.E., Lyche, T., Neamtu, M., Schumaker, L.L., Control curves and knot insertion for trigonometric splines. Adv. Comp. Math. 3, 405 – 424. S á nchez-Reyes, J., Harmonic rational B é zier curves, p-B é zier curves and trigonometric polynomials. Computer Aided Geometric Design 15, 909 – 923. Walz, G., 1997a. Some identities for trigonometric B-splines with application to curve design. BIT 37, 189 – 201.

Construction of basis functions

Basis functions For equidistant knots, b i (u) : uniform basis functions. For non-equidistant knots, b i (u) : non-uniform basis functions. For λ = 0, b i (u) : linear trigonometric polynomial basis functions.

Uniform basis function λ = 0 (dashed lines), λ = 0.5 (solid lines).

Properties of basis functions Has a support on the interval [ui,ui+3]: Form a partition of unity:

The continuity of the basis functions b i (u) has C1 continuity at each of the knots.

The case of multiple knots knots are considered with multiplicity K=2,3 Shrink the corresponding intervals to zero; Drop the corresponding pieces. u i =u i +1 is a double knot

Geometric significance of multiple knots b i (u) has a knot of multiplicity k (k = 2 or 3) at a parameter value u At u, the continuity of b i (u) : :discontinuous) The support interval of b i (u): 3 segments to 4 − k segments Set : −1 < λ≤ 1, λ≠ -1

The case of multiple knots λ = 0 (dashed lines), λ = 0.5 (solid lines)

Trigonometric polynomial curves Quadratic trigonometric polynomial curve with a shape parameter: Given: points P i (i = 0, 1,...,n) in R 2 or R 3 and a knot vector U = (u 0,u 1,...,u n+3 ). When u ∈ [u i,u i+1 ], u i ≠ u i+1 (2 ≤ i ≤ n)

The continuity of curves When a knot u i : multiplicity k (k=1,2,3) the Trigonometric polynomial curves : continuity, at knot u i.

Open trigonometric curves Choose the knot vector: T(U 2 )=P o, T(U n+1 )=P n ;

Example: Curves for λ = 0, 0.5, 1(solid lines) and the quadratic B-spline curves (dashed lines), U = (0, 0, 0, 0.5, 1.5, 2, 3, 4, 5, 5, 5).

Closed trigonometric curves Extend points P i (i=0,1, …,n) by setting: P n+1 =P 0,P n+2 =P 1 Let:U n+4 =U n+3 +∆U 2, ∆U 1 = ∆U n+2,U n+5 ≥U n+4 b n+1 (u) and b n+2 (u) are given by expanding. T(u 2 )=T(U n+3 ), T ′ (U 2 )= T ′ (U n+3 )

Examples: Closed curves for λ = 0, 0.5 (solid, dashed lines on the left), λ = 0.1, 0.3 (solid, dashed lines on the right), quadratic B-spline curves (dotted lines)

The representation of ellipses When the shape parameterλ = 0, u ∈ [u i,u i+1 ], Origin:P i-1, unit vectors:P i-2 -P i-1, P i -P i-1 T (u) is an arc of an ellipse.

Approximability T i (t i ) (u ∈ [u i,u i+1 ]) decrease of ∆u i fixed ∆u i-1, ∆u i+1 Merged with: T i (0)P i−1,P i−1 T i (π/2). T i (t i ) (u ∈ [u i,u i+1 ]) The edge of the given control polygon. Increase λ −1 < λ≤ 1

Examples:

Approximability The associated quadratic B-spline curve: Given points P i ∈ R 2 or R 3 (i = 0, 1,...,n) and knots u 0 <u 1 < ··· <u n+3. u ∈ [u k,u k+1 ]

Approximability The relations of the trigonometric polynomial curves and the quadratic B-spline curves:

Approximability

Conclusion of Approximability The trigonometric polynomial curves intersect the quadratic B-spline curves at each of the knots u i (i = 2, 3,..., n+1) corresponding to the same control polygon. For λ ∈ (−1, (√2−1)/2], the quadratic B-spline curves are closer to the given control polygon; For λ ∈ [(√2 − 1)/2,√5 − 2], the trigonometric polynomial curves are very close to the quadratic B-spline curves; For λ = (√2 − 1)/2 and λ = √5 − 2, the trigonometric polynomial curves yield a tight envelope for the quadratic B-spline curves; For λ ∈ [√5 − 2, 1], the trigonometric polynomial curves are closer to the given control polygon.

Cubic trigonometric polynomial curves with a shape parameter Xuli Han CAGD. (2004) 535 – 548

Related work: Han, X., Quadratic trigonometric polynomial curves with a shape parameter. Computer Aided Geometric Design 19,503 – 512. Han, X., Piecewise quadratic trigonometric polynomial curves. Math. Comp. 72, 1369 – 1377.

Construction of basis functions

Basis functions For equidistant knots, B i (u) : uniform basis function,simple bi0=bi2=bi3=cio=ci1=ci3=0 For non-equidistant knots, B i (u) : non-uniform basis functions. For λ = 0, B i (u) : quadratic trigonometric polynomial basis functions.

Properties of basis functions Has a support on the interval [u i,u i +4]:  If −0.5 0 for u i <u<u i +4.  With a uniform knots vector, if −1 ≤ λ ≤ 1, B i (u) > 0 for u i <u<u i +4. Form a partition of unity:

The continuity of the basis functions With a non-uniform knot vector:  b i (u) has C2 continuity at each of the knots. With a uniform knot vector:  λ≠1, b i (u) has C3 continuity at each of the knots  λ=1, b i (u) has C5 continuity at each of the knots

The case of multiple knots knots are considered with multiplicity K=2,3,4 Shrink the corresponding intervals to zero; Drop the corresponding pieces. u i =u i +1 is a double knot

Geometric significance of multiple knots b i (u) has a knot of multiplicity k (k = 2,3,4) at a parameter value u At u, the continuity of b i (u): discontinuous) The support interval of b i (u): 4 segments to 5 − k segments

The case of multiple knots λ= 0 λ= 0.5

The case of multiple knots λ= 0 λ= 0.5

Trigonometric polynomial curves Cubic trigonometric polynomial curve with a shape parameter: Given: points P i (i = 0, 1,...,n) in R 2 or R 3 and a knot vector U = (u 0,u 1,...,u n+4 ). When u ∈ [u i,u i+1 ], u i ≠ u i+1 (3 ≤ i ≤ n)

Trigonometric polynomial curves With a uniform knot vector, T(u)=(f0(t),f1(t),f2(t),f3(t)). (Pi-3,Pi-2,Pi-1,P1) ′.(1/4 λ+6 ) t ∈ [0, Π/2 ]

The continuity of the curves With a non-uniform knot vector, ui has multiplicity k (k=1,2,3,4)  The curves have C 3-k continuity at ui  The curves have G 3 continuity at ui, k=1 With a uniform knot vector:  λ≠1, The curves have C 3 continuity at each of the knots  λ=1, The curves have C 5 continuity at each of the knots

Open trigonometric curves Choose the knot vector: T(U 0 )= T(U 3 )=P 0, T(U n+1 )= T(U n+4 )=P n ;

Closed trigonometric curves Extend points P i (i=0,1, …,n) by setting: P n+ 1=P 0,P n+2 =P 1,P n+3 =P 2 Let:∆U j = ∆U n+j+1, (j=1,2,3,4) B n+1 (u), B n+2 (u),B n+3 (u) are given by expanding.

Examples: λ=- 0.3 λ=0 λ=0. 6 λ=0 λ=-0.28 Cubic B- spline

The representation of ellipses When the shape parameterλ = 0, u ∈ [u i,u i+1 ], P i−3 = (−a,−b), P i−2 = (−a, b), P i−1 = (a, b), P i = (a,−b), With a uniform knot vector, T (u) is an arc of an ellipse.

Trigonometric B é zier curve U ∈ [u i,u i+1 ], u i <u i+1, u i and u i+1 : triple points. (u 3 : quadruple point, u n+1 : quadruple point) -2 ≤λ≤1

Trigonometric B é zier curve

Examples: the cubic B é zier curve (dashed lines), the trigonometric B é zier curves with λ=−1 (dashdot lines) and λ = 0 (solid lines)

Approximability T(u) u ∈ [u i,u i+1 ] Increase λ the edge P i−2 P i−1 Parameter λ controls the shape of the curve T (u)

Examples:

Approximability Given: B(u): cubic B-spline curve with a knot vector U. T(u): cubic trigonometric polynomial curves, with λ Find: The relations of B(u) and T(u)

Approximability With a non-uniform knot vector U, λ = 0. T (u i ) = B(u i ) (i = 3, 4,..., n+1)

Approximability With a uniform knot vector −1 ≤ λ ≤1, g(λ) ≤ 1 if and only if λ ≥ 0; h(λ) ≤ 1 if and only if λ≥λ 0 ≈−

Approximability With a uniform knot vector, forλ= 0, With a uniform knot vector,forλ =λ 0, If λ 0 ≤λ≤0, then T (u) is close to B(u)

Approximability Given: : cubic B é zier curve T(u): trigonometric B é zier curve. (cubic trigonometric polynomial curves,with λ ) With the same control point P i-3,P i-2,P i-1,P i Find: The relations of and T(u)

Approximability T(u) is close to, when λ≈−0.65.

Interpolation Given: a set of nodes :x1 < x2 < ··· < xm. Find: trigonometric function of the form Purpose: interpolate data given at the nodes

Goal: The interpolation matrix A = (A ij ) m×m ; A ij = B j (x i ), i, j = 1, 2,..., m A must be nonsingular.

Necessary condition Let: −0.5 ≤ λ ≤ 1 If the matrix A is nonsingular. Then A ii ≠ 0 (u i < x i <u i+4 ), i = 1, 2,...,m.

Sufficient condition Let: −0.5 ≤ λ ≤ 1 If  u i < x i ≤ u i+1 or u i+3 ≤ x i <u i+4, i = 1, 2,...,m,  If x i = u i+2 and 1 − 2a i+2 − 2d i+1 ≥ 0, i = 1, 2,...,m, Then A is nonsingular.

Method of Interpolation assign arbitrary value to P 0 and P m+1, then solve the equations

Uniform B-Spline with Shape Parameter

Conclusions: Properties of trigonometric polynomial curves Shape parameter controls the shape of the curves Compare with B-spline, Bézier in some aspects.

Thank you Questions ?