Blending Two Parametric Quadratic Bezier Curves

Similar documents
Constructing Blending Surfaces for Two Arbitrary Surfaces

Sung-Eui Yoon ( 윤성의 )

A New Class of Quasi-Cubic Trigonometric Bezier Curve and Surfaces

Curves and Surfaces for Computer-Aided Geometric Design

Keyword: Quadratic Bézier Curve, Bisection Algorithm, Biarc, Biarc Method, Hausdorff Distances, Tolerance Band.

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

Construct Piecewise Hermite Interpolation Surface with Blending Methods

Computer Graphics Curves and Surfaces. Matthias Teschner

Knot Insertion and Reparametrization of Interval B-spline Curves

3D Modeling Parametric Curves & Surfaces. Shandong University Spring 2013

Positivity Preserving Interpolation of Positive Data by Rational Quadratic Trigonometric Spline

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur

Bezier Curves. An Introduction. Detlef Reimers

Curves and Surfaces 1

Approximation of 3D-Parametric Functions by Bicubic B-spline Functions

In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include

Circular Arc Approximation by Quartic H-Bézier Curve

Curves and Surfaces Computer Graphics I Lecture 9

On an approach for cubic Bézier interpolation

CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Les Piegl Wayne Tiller. The NURBS Book. Second Edition with 334 Figures in 578 Parts. A) Springer

CSE 167: Introduction to Computer Graphics Lecture #13: Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017

Design considerations

Information Coding / Computer Graphics, ISY, LiTH. Splines

3D Modeling Parametric Curves & Surfaces

Blending curves. Albert Wiltsche

Shape Control of Cubic H-Bézier Curve by Moving Control Point

Curves. Computer Graphics CSE 167 Lecture 11

CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside

Geometric Modeling of Curves

(Refer Slide Time: 00:02:24 min)

Zulfiqar Habib and Manabu Sakai. Received September 9, 2003

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Constrained modification of the cubic trigonometric Bézier curve with two shape parameters

LECTURE #6. Geometric Modelling for Engineering Applications. Geometric modeling for engineering applications

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics

Curve and Surface Basics

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Parametric curves. Brian Curless CSE 457 Spring 2016

SPIRAL TRANSITION CURVES AND THEIR APPLICATIONS. Zulfiqar Habib and Manabu Sakai. Received August 21, 2003

Curves and Surface I. Angel Ch.10

CAGD PACKAGE FOR MATHEMATICA AND ITS USAGE IN THE TEACHING

Developing an Approach to Redesign Freeform Surfaces Using B-Spline Technique

Curves and Surfaces Computer Graphics I Lecture 10

Quasi-Quartic Trigonometric Bézier Curves and Surfaces with Shape Parameters

Fall CSCI 420: Computer Graphics. 4.2 Splines. Hao Li.

Method for computing angle constrained isoptic curves for surfaces

An introduction to interpolation and splines

Splines. Connecting the Dots

TO DUY ANH SHIP CALCULATION

Surface Representation as a Boundaryvalued

Until now we have worked with flat entities such as lines and flat polygons. Fit well with graphics hardware Mathematically simple

COMPUTER AIDED GEOMETRIC DESIGN. Thomas W. Sederberg

Progressive Surface Modeling Based On 3D Motion Sketch

Discrete Coons patches

Reparametrization of Interval Curves on Rectangular Domain

8 Project # 2: Bézier curves

Corners in Planar Cubic B-spline and Bezier Curve Segments

The Free-form Surface Modelling System

08 - Designing Approximating Curves

The Essentials of CAGD

Algebra II Quadratic Functions

MA 323 Geometric Modelling Course Notes: Day 31 Blended and Ruled Surfaces Coons Patches

Splines. Parameterization of a Curve. Curve Representations. Roller coaster. What Do We Need From Curves in Computer Graphics? Modeling Complex Shapes

Interactive Graphics Using Parametric Equations (Day 2)

Lecture IV Bézier Curves

ABSTRACT. Keywords: Continuity; interpolation; rational trigonometric spline; shape preserving ABSTRAK

13.472J/1.128J/2.158J/16.940J COMPUTATIONAL GEOMETRY

13.472J/1.128J/2.158J/16.940J COMPUTATIONAL GEOMETRY

Objects 2: Curves & Splines Christian Miller CS Fall 2011

Computer Graphics CS 543 Lecture 13a Curves, Tesselation/Geometry Shaders & Level of Detail

Curves and Surfaces. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd

UNIT 3 EXPRESSIONS AND EQUATIONS Lesson 3: Creating Quadratic Equations in Two or More Variables

[11] Gibson, C.G., Elementary Geometry of Algebraic Curves. Cambridge University

Properties of Quadratic functions

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics 1/15

Central issues in modelling

DEPARTMENT - Mathematics. Coding: N Number. A Algebra. G&M Geometry and Measure. S Statistics. P - Probability. R&P Ratio and Proportion

Curves & Surfaces. MIT EECS 6.837, Durand and Cutler

2D Spline Curves. CS 4620 Lecture 18

Designing by a Quadratic Trigonometric Spline with Point and Interval Shape Control

Further Graphics. Bezier Curves and Surfaces. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Intro to Modeling Modeling in 3D

ABSTRACT. Keywords: Continuity; interpolation; monotonicity; rational Bernstein-Bézier ABSTRAK

Computer Graphics. Curves and Surfaces. Hermite/Bezier Curves, (B-)Splines, and NURBS. By Ulf Assarsson

Know it. Control points. B Spline surfaces. Implicit surfaces

Introduction to Computer Graphics

Spline Notes. Marc Olano University of Maryland, Baltimore County. February 20, 2004

Research Article Data Visualization Using Rational Trigonometric Spline

p y = 0 x c Figure : Stereographic projection. r p p y = 0 c p Figure : Central projection. Furthermore, we will discuss representations of entire sph

CS770/870 Spring 2017 Curve Generation

Bezier Curves, B-Splines, NURBS

Almost Curvature Continuous Fitting of B-Spline Surfaces

CS337 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics. Bin Sheng Representing Shape 9/20/16 1/15

Introduction p. 1 What Is Geometric Modeling? p. 1 Computer-aided geometric design Solid modeling Algebraic geometry Computational geometry

CURVILINEAR MESH GENERATION IN 3D

Algebra 1 Semester 2 Final Review

The equation to any straight line can be expressed in the form:

Transcription:

2015, TextRoad Publication ISSN 2090-4304 Journal of Basic and Applied Scientific Research www.textroad.com Blending Two Parametric Quadratic Bezier Curves Nurul Husna Hassan, Mazwin Tan, Norasrani Ramli, Siti Mariam Ismail Technical Foundation Section Universiti Kuala Lumpur (UniKL) Malaysian Spanish Institute, Kulim, Kedah, Malaysia ABSTRACT Received: August 13, 2015 Accepted: October 28, 2015 The main objective of this project is to show on how to blend two parametric curves where the two parametric curves is blended to produce one new curve under certain conditions given. Normally, a Bezier curve is a parametric curve that is frequently used in Computer-Aided Design (CAD) and Computer-Aided Graphic Design (CAGD). Therefore, this kind of curve is selected to be used in this project that will focus on quadratic Bezier curve. Then, this idea on blending two parametric curves is expanded to blend the curves in plane. Furthermore, by this way, we can generate various shapes in three dimensional (3D). KEYWORDS: Bezier curve, blending parametric curve. INTRODUCTION The concept and application of Bezier curves is used to model parametric curves and surfaces independently. Bezier curve is a base curve that is widely used in geometric design. There are many graphics packages which have been used Bezier curves in their CAGD system such as Adobe Illustrator, CorelDraw and generate fonts to PostScript. In 1998, Hui described that a curve can be blended into another curve. Farin (2002) stated that by blending bilinear curves can produced a patch Coons. In Piegl (1997), the term function is defined as mixture of basic function for the curve involved. The formula usually is created in an orderly and organized method so that the results of the curve which is blended qualify and correspond to each point on the curve bases. Many theories and methods have been introduced in the blending curves and surfaces involving Hermite interpolation, cubic ratio interpolation splints and Casteljau algorithm. There are several methods has been used to solve problems involving blending curves. For example, C.Hoffmann and J.Hopcroft (1986) suggest a potential method for blending surface automatically, but they provided that the surface to be blended should be quadric. Therefore, Jinsan Cheng (2002) discussed the continuity and smoothness in combining these two quadric surfaces in explicit formula. A curved base is built to connect the two axes of the surface to be blended. Through this method, the surface needs a normal vector at each point within the limits. Bezier curve is defined by the endpoints of the curve and control points that will determine the degree of curvature. This curve does not provide a local control point. So, by changing the control points it will affect the overall shape of the curve. This project shows how two quadratic Bezier curves with parameter t are blended or mixed together to produce a new third curve according to certain conditions. In addition, this project also discusses the blending of free surface equation. Bezier Curve Bezier curve with degree is known as MATERIAL AND METHOD = 1 = 1 + 1 t + + 1 t + where is a parameter, [0,1] and is a binomial coefficient.,,,, are the control points. Corresponding Author: Nurul Husna Hassan Universiti Kuala Lumpur (UniKL) Malaysian Spanish Institute, Kulim, Kedah, Malaysia. Email: nurulhusna@unikl.edu.my 58

Hassan et al., 2015 Quadratic Bezier Curve Given that three control points, dan, we divide the segment based on parameter where [0,1]. Let is a point for segment by using the following equation: = 1 + (1.1) Let is a point for segment by using the following equation = 1 + (1.2) Let is a point for segment by using the following equation = 1 + (1.3) Given = Based on the three equations above, each point, dan is a function with parameter. can be solved using. Therefore, is determined as a function of Bezier curve. = = 1 + (1.4) Equation (1.1) and (1.2) then substituted into equation (1.4), we get = 1 +21 +, [0,1] (1.5) Equation (1.5) is a quadratic polynomial with parabolic shaped. Therefore, quadratic Bezier curve is a parabolic curve. Figure 1 Quadratic Bezier curve 59

Blending curves Let and are curves with parameter where [0,1].! is required to be start with = 0 at point 0 = " for the curve and last at = 1 at the point 1= for the curve. Therefore,!0 = 0 = ", 1 = "!1 = 1 =, 0 = In addition, the curve b (t) should also have tangent vectors which are! # 0 = # 0 = $! # 1 = # 1 = $ % The equation for the new curve by blending dan together is given by! = [1 &] + &,0 1 Based on the condition!0 = 0 and!1 = 1, it shows that H (0) = 0 and H (1) = 1. The lowest degree polynomial for & is one. Thus we obtain! = [1 ] +,0 1 Blending two quadratic Bezier curve Quadratic Bezier curve is generally given by the following equation = 1 ( +21 ( + ( % = 1 ) +21 ) + ) % (2.1) The linear blend for quadratic Bezier curve is given by! = [1 ] +,0 1 Therefore, equation (2.1) can be simplified as! = 1 1 ( +21 ( + ( % +1 ) +21 ) + ) % (2.2) Equation (2.1) is defined as the following with = 0 at start and end at = 1. 0 = ( = *,+ 0 = ) = *,+ 1 = ( % = *,,+, 1 = ) % = *,,+, for 0 = 0,1,2,, For the curve!, it must satisfy!0 = 0 = (! # 0 = # 0 = $!1 = 1 = ( %! # 1 = # 1 = $ % Tangent vector for equation (2.1) and (2.2) is determined by differentiate those three equations, and! with respect to t and we obtained # = 21 ( +21 ( 2( +2( % # = 21 ) +21 ) 2) +2) %! # = 1 ( 21 ( ( % +1 21 ( +21 ( 2( +2( % +1 ) +21 ) + ) % + 21 ) +21 ) 2) +2) % 60

Hassan et al., 2015 Then tangent vector for Equation (2.1) and (2.2) with = 0 at start and end at = 1 are as follows # 0 = 2( +2( # 0 = 2) +2) # 1 = 2( +2( % # 1 = 2) +2) %! # 0 = 3( +2( +)! # 1 = ( % 2) +3) % (2.3) From (2.3), we found that! # 0 2 # 0 and! # 1 2 # 1. In order to qualify the requirement for curve!, the starting point and the end point for the two curves and should be the same. So 0 = 0 = ( and 1 = 1 = ( %. Equation (2.1) and (2.2) become = 1 ( +21 ( + ( % = 1 ( +21 ) + ( %! = 1 1 ( +21 ( + ( % +1 ) +21 ) + ) % (2.4) Then, the tangent vector for equation (2.4) with = 0 at start and end at = 1 are as follows # 0 = 2( +2( # 0 = 2( +2) # 1 = 2( +2( % # 1 = 2) +2( %! # 0 = 2( +2(! # 1 = 2) +2( % (2.5) From (2.5), the tangent vector for! follows the condition where! # 0 = # 0! # 1 = # 1 Figure 2 is plotted with coordinate ( = 2,3,( = 3,2, ( % = 4,4 and tangent vector $ = 2, 2 and $ = 2,4 61

4 (4,4) D 2 De 3 (2,3) 2 1.5 2.5 3.0 3.5 4.0 4.5 Figure 3 is plotted with coordinate ( = 2,3, ) = 3, 2, ( % = 4,4 and tangent vector $ = 2, 10 and $ % = 2,12 4 (4,4) D 0 De 3 (2,3) 1.5 2.5 3.0 3.5 4.0 4.5 k 1 2 b 1 k 2 Figure 4 the new curve! formed by blending the curves and. Based on figure 4, it shows that the three curves, and! are plotted on the same axis. The curve! that is generated follows the condition where it starts at the same point at ( = 2,3 and ends at the same point at ( % = 4,4. The vector tangent also meets the conditions where! # 0 = # 0 = 2, 2 and! # 1 = # 1 = 2,12. Blending two quadratic Bezier curve in a plane According to the equation 2.1 (,(,( %,),) and ) % are points in plane *,+,?. For this discussion, curve is plotted in? @*0A so that the coordinate is *,+,0. For the curve, it is plotted in * @*0A so that the coordinate is 0,+,?. Therefore, the control points are given by We have ( = *,y,0, ( = *,y,0, ( % = *,y,0 ) = 0,+,?, ) = 0,y,z, ) % = 0,y,z = 1 * +21 * + *,1 + +21 + + +,0 = 0,1 + +21 + + +,1? +21? +? 62

Hassan et al., 2015 (a) curve with coordinate *,+,0 (b) curve with coordinate 0,+,? Figure 5 Quadratic Bezier curve, and in plane Based on Figure 5, is a parabolic curve formed along the z-plane. While is a parabolic curve formed along the x-plane. DISCUSSION Linear Blending for Quadratic curve Given a linear function with the following general equation D = 1 E +E % (3.1) The three curves, and D will be blending together to form a new shaped based on the following surface equation. FG = 1 G +2G1 G D +G (3.2) where 0,1 and G 0,1. The coordinate for point E and E % should be controlled to ensure that the result is as expected. The coordinate for point E and E % are set as E = (*,+ H,? ) and E % = *,+ I,?. Therefore we have D = 1 * +*,1 + H ++ I,1? +? Figure 6 Linear curve D with coordinate E = *,+ H,?and E % = *,+ I,? In a plane surface, D is a straight line along y-plane. 63

(a) Curve with coordinate E = *,1,? and E % = *,1,? (b) Curve with coordinate E = *,2,? and E % = *,2,? (c) Curve with coordinate E = *,3,? and E % = *,3,? (d) Curve with coordinate E = *,4,? and E % = *,4,? ) (e) Curve with coordinate E = *,5,? and E % = *,5,? Figure 7 the blending linear curve D with quadratic Bezier curve and with value + H = + I but different E and E %. Based on Figure 7 (a), when + H = + I = 1, the curve D intercepts the y-axis at y = 1. Figure 7 (b) shows the curve D intercepts the y-axis at y = 2. By setting + H = + I = +, D will be in the same plane with the curve and. When the value of + H and + I are greater than +, it can be seen that the interception between the three curves form a new curve between and as in figure 7 (d) and (e). 64

Hassan et al., 2015 (a) Curve with coordinate E = *,3,? and E % = *,4,? (b) Curve with coordinate E = *,3,? and E % = *,5,? (c) Curve with coordinate E = *,3,? and E % = *,6,? Figure 8 the blending of linear curve D with quadratic Bezier curve and with value + H 2 + I with different coordinate for E and E % Based on figure 8, the value of + H L + I. The curve Dcrosses the curves and at + H in the front and at + I at the behind. CONCLUSIONS This whole project discuss about the two parametric curves that are blend together to generate a new curve by using some specific conditions and rules. If two curves for Bezier functions are blended, the most important thing is to control the control points so that the new third curve is as expected. The more points that need to be controlled, it is difficult to produce the curved as desired. The advantage of using Bezier curve is it is easily formed by controlling the control points. REFERENCES 1. Bloor, M.I.G. & Wilson, M.J. (1989). Generating Blending Surfaces using Partial Differential Equation, Computer Aided Design 21(3); 165-171 2. Chen, F.L., Chen, D.S.,& Deng, J.S. (2002). Chinese J. Computer: Blending Pipe Surfaces with Piecewise Algebraic Surfaces, September 2000, 911-916 3. Farin, G. (2002). Curves and Surfaces for CAGD: Apractical Guide, 5 th Edition. San Diego: Academic Press 2002. 4. Hartmann, E. (2001). M -continuous Connections between Normal Ringed Surfaces, CAGD 18: 2001:751-770 5. Hoffmann, E. & Hopcroft, J. (1986). Quadratic Blending Surfaces, Computer Aided Design (18):301-307 6. Hui, K.C. & Li,Y. (1998). A Feature-based Shape Blending Technique for Industrial Design. Computer Aided Design 1998:30:323-34. 65

7. Jinsan Cheng (2002). Blending Quadric Surfaces via Base Curve Method No. 21, December 2002, Sinica, Beijing. 8. Meek, D.S. dan Walton, D.J. (2009). Blending Two Parametric Curves, Computer-Aided Design, University of Manitoba, Winnipeg, Canada. Available from World Wide Web: http://www.elsevier.com/locate/cad 9. Piegl, L. & Tiller, W. (1997). The NURBS Book, 2 nd Edition. Berlin:Springer: 1997. 10. Siti Farah Haryati (2007). Pengawalan Lengkung bagi Persamaan Fungsi dan Parameter (Polinomial), Pusat Pengajian Sains Matematik, Universiti Sains Malaysia, Pulau Pinang. 11. Wu, T.R. & Zhou, Y.S. (2000). On Blending of Several Quadratic Algebraic Surfaces, CAGD 17: 759-766 12. Wu, W.T. & Wang, D.K. (1994). On Surface-fitting Problem in CAGD, Mathematics in Practice and Theory, 1994: 26-31 13. Yeoh Weng Kang & Jamaludin Md Ali (2003). Rumus Am Lingkaran Kubik Bezier Satahan, UTM, Malaysia. 66