COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

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

Sung-Eui Yoon ( 윤성의 )

The Free-form Surface Modelling System

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

Curves and Surfaces 1

Curves and Surfaces Computer Graphics I Lecture 9

TO DUY ANH SHIP CALCULATION

Central issues in modelling

Geometric Modeling of Curves

Curves and Surfaces. CS475 / 675, Fall Siddhartha Chaudhuri

Curves and Surfaces Computer Graphics I Lecture 10

3D Modeling Parametric Curves & Surfaces

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

For each question, indicate whether the statement is true or false by circling T or F, respectively.

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

9. Three Dimensional Object Representations

Curves and Surface I. Angel Ch.10

Design considerations

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

ASSIGNMENT 1 INTRODUCTION TO CAD

Curve and Surface Basics

GL9: Engineering Communications. GL9: CAD techniques. Curves Surfaces Solids Techniques

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

Curves. Computer Graphics CSE 167 Lecture 11

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

Functions of Several Variables

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

Curves D.A. Forsyth, with slides from John Hart

ENGI Parametric & Polar Curves Page 2-01

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

2D Spline Curves. CS 4620 Lecture 13

B-spline Curves. Smoother than other curve forms

ECE 600, Dr. Farag, Summer 09

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

Background for Surface Integration

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

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

Computer Graphics Curves and Surfaces. Matthias Teschner

True/False. MATH 1C: SAMPLE EXAM 1 c Jeffrey A. Anderson ANSWER KEY

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

The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a

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

Curves and Surfaces. Shireen Elhabian and Aly A. Farag University of Louisville

Fathi El-Yafi Project and Software Development Manager Engineering Simulation

2D Spline Curves. CS 4620 Lecture 18

Parametric curves. Reading. Curves before computers. Mathematical curve representation. CSE 457 Winter Required:

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

An introduction to interpolation and splines

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

University of California, Berkeley

Intro to Curves Week 1, Lecture 2

Spline Curves. Spline Curves. Prof. Dr. Hans Hagen Algorithmic Geometry WS 2013/2014 1

3.2 THREE DIMENSIONAL OBJECT REPRESENTATIONS

We have already studied equations of the line. There are several forms:

notes13.1inclass May 01, 2015

Intro to Curves Week 4, Lecture 7

Outline. Properties of Piecewise Linear Interpolations. The de Casteljau Algorithm. Recall: Linear Interpolation

CS770/870 Spring 2017 Ray Tracing Implementation

Workbook. MAT 397: Calculus III

CS 536 Computer Graphics Intro to Curves Week 1, Lecture 2

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

Introduction to Computer Graphics

Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

Topic 5-6: Parameterizing Surfaces and the Surface Elements ds and ds. Big Ideas. What We Are Doing Today... Notes. Notes. Notes

Interactive Graphics Using Parametric Equations (Day 2)

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

We have already studied equations of the line. There are several forms:

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

form. We will see that the parametric form is the most common representation of the curve which is used in most of these cases.

Lecture 2.2 Cubic Splines

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Lecture IV Bézier Curves

VALLIAMMAI ENGINEERING COLLEGE

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

Rational Bezier Curves

Outline. The de Casteljau Algorithm. Properties of Piecewise Linear Interpolations. Recall: Linear Interpolation

Computer Aided Geometric Design

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

18.02 Final Exam. y = 0

Grad operator, triple and line integrals. Notice: this material must not be used as a substitute for attending the lectures

Parametric Surfaces. Substitution

Topics in Analytic Geometry Part II

Intro to Modeling Modeling in 3D

To sketch the graph we need to evaluate the parameter t within the given interval to create our x and y values.

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

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

COMPUTER AIDED GEOMETRIC DESIGN. Thomas W. Sederberg

CHAPTER 1 INTRODUCTION TO COMPUTER AIDED DESIGN

Parameterization of triangular meshes

7 Fractions. Number Sense and Numeration Measurement Geometry and Spatial Sense Patterning and Algebra Data Management and Probability

Objects 2: Curves & Splines Christian Miller CS Fall 2011

Chapter 1 Introduction

8(x 2) + 21(y 1) + 6(z 3) = 0 8x + 21y + 6z = 55.

CS 4620 Final Exam. (a) Is a circle C 0 continuous?

Solution Notes. COMP 151: Terms Test

Zulfiqar Habib and Manabu Sakai. Received September 9, 2003

Representing Curves Part II. Foley & Van Dam, Chapter 11

American International Journal of Research in Science, Technology, Engineering & Mathematics

Bezier Curves, B-Splines, NURBS

Transcription:

COMPUTER AIDED ENGINEERING DESIGN (BFF2612) BASIC MATHEMATICAL CONCEPTS IN CAED by Dr. Mohd Nizar Mhd Razali Faculty of Manufacturing Engineering mnizar@ump.edu.my

COORDINATE SYSTEM y+ y+ z+ z+ x+ RIGHT HANDED Coordinate System x+ LEFT HANDED Coordinate System We adopt RIGHT HANDED Coordinate System.

PARAMETRIC SYSTEM Most CAD software use parametric system. Parametric curves: - Each coordinate of a point on a curve is represented as a function of one or more parameters. - The position vector of a point on the curve is fixed by the value of the parameter. - It is well suited for computations and display. Limitations of non-parametric representation: 1. If the slope of a curve at a point is vertical, its value becomes infinity. It is difficult for computation and program (y = mx + c). 2. Shapes of engineering objects are independent to any coordinate system. 3. If the curve is to be displayed as a series of points, straight line segments, the computations is extensive. 3

Representations of Geometry (2D and 3D Shapes) y Non-Parametric Representations: x Circle (2D): x 2 + y 2 = R 2 Implicit y = ± R 2 x 2 Explicit y z y x Sphere (3D): x 2 + y 2 + z 2 = R 2 x Plane (3D): Ax + By + Cz = D z

z+ Representations of Geometry (2D and 3D Shapes) y+ θ r φ y x+ y R θ P (x,y,z) x t=0 x 1 y 1 z 1 z+ x y+ x(t) y(t) z(t) x 2 y 2 z 2 t=1 x+ Parametric representations: Circle x = R cos θ y = R sin θ 0 θ 2π Sphere x = r cos cos θ y = r cos sin θ z = r cos π π, 0 θ 2π 2 2 Line x t = x 1 + x 2 x 1 t y t = y 1 + y 2 y 1 t z t = z 1 + z 2 z 1 t 5

CALCULATION EXAMPLE OF PARAMETRIC AND NON PARAMETRIC Comparison of non parametric and parametric representations for a circle in the first quadrant y - Non parametric representation for unit circle in first quadrant (R=1): y = + 1 x 2 0 x 1 y θ + x - Parametric form for unit circle x = cos θ y = sin θ P θ = x y = cos θ sin θ 0 θ 2π x 6

CALCULATION EXAMPLE OF PARAMETRIC AND NON PARAMETRIC Determination of a point on a parametric curve. Determine the value of y for a given x e.g. x=0.5, R=1 for unit circle Explicit non parametric representation Parametric representation y = 1 x 2 = 1 0.5 2 = 0.75 = 0.866 x = cos θ y = sin θ First solve for the parameter θ in x θ = cos 1 x = cos 1 0.5 = 60 0 y = sin 60 0 = 0.866 For more complex parametric representations => iterative techniques 7

Parametric Expression of Curve Curve t=0 x(t) y(t) z(t) t=1 x t = f x t y t = f y t z t = f z t Functions of 1 parameter t 0 t 1 Example: 8

Parametric Expression of Surface u=0 v=0 u=0 v=1 u=1 v=0 x y z u=1 v=1 Surface x u, v = f x u, v y u, v = f y u, v z u, v = f z u, v Functions of 2 parameters u, v 9

Parametric Expression of Solid Solid x u, ν, w = f x u, ν, w y u, ν, w = f y u, ν, w z u, ν, w = f z u, ν, w Functions of 3 parameters u, v, w 10

CURVE CATEGORIES Two categories of curves represented parametrically: 1. Analytic. Described by analytical equations. Example lines, circles, conics. 2. Synthetic. Described by sets of data points, such as splines and Bezier curves. Provide greater flexibility and control of a curve shape by changing the positions of the control points. Especially applied for curves and surfaces. 11

ANALYTIC CURVE Circle x = x c + R cos θ y = y c + R sin θ z = z c Centre of circle is x c y c z c, radius is R and 0 θ 2π 12

ANALYTIC CURVE Ellipse x = x c + A cos θ y = y c + B sin θ z = z c Centre of ellipse is x c y c z c and 0 θ 2π 13

SYNTHETIC CURVE Parametric cubic polynomial curves (Hermite curves) Bezier curves Cubic spline curves B-spline curves 14

Parametric cubic polynomial curves (Hermite curves) A cubic curve may equally well be defined to fit two points and two slope conditions at the points. 15

Parametric cubic polynomial curves (Hermite curves) The parametric equation of a cubic spline segment is given by: 3 P u = σ i=0 C i u i 0 u 1 Where u is the parameter and C i are the polynomial (also called algebraic) coefficients. In scalar form this equation is written as: x u = C 3x u 3 + C 2x u 2 + C 1x u + C 0x y u = C 3y u 3 + C 2y u 2 + C 1y u + C 0y z u = C 3z u 3 + C 2z u 2 + C 1z u + C 0z We have 12 unknowns and we can use Lagrange interpolation to solve these equations with four points. In vector form: P u = C 3 u 3 + C 2 u 2 + C 1 u + C 0 (a) The tangent vector (slope) of the curve is: P u = 3C 3 u 2 + 2C 2 u + C 1 (b)

Parametric cubic polynomial curves Using the end points p 0 and p 1, and the end slopes p 0 and p1, we can substitute in Equations (a) and (b) to derive the unknowns. It is usual to assign u = 0 and u = 1 to the two ends of the segment. Thus: p 0 = C 0 p 0 = C 1 p 1 = C 3 + C 2 + C 1 + C 0 p 1 = 3C 3 + 2C 2 + C 1 Solving for C 0 to C 3 we obtain: C 0 = p 0 C 1 = p 0 C 2 = 3 p 1 p 0 2p 0 p 1 C 3 = 2 p 0 p 1 + p 0 + p 1 Thus by substitution in Equation (a), we obtain (general form of a Hermit cubic polynomial: P u = p 0 1 3u 2 + 2u 3 + p 1 3u 2 2u 3 + p 0 u 2u 2 + u 3 + p 1 u 2 + u 3 (Hermite curves) 17

Bezier Curves The curves controlled by its defining points, the curve is always tangent to the first and last polygon segments. The use of points and tangent vectors to provide boundary values for curves is not attractive for interactive design, because the user may not have much feel for the slopes entered as numerical values. 18

Bezier Curves Bezier used a control polygon for curves. The mid vertices (control points) are defined to be 1/3 of the way along the tangent vectors. Hermite curves Bezier curves p 0 p 0 p 1 p 3 p 0 = 3 p 1 p 0 p 3 = 3 p 3 p 2 Substitute these into Equation below (Hermite curves) and gathering terms: P u = p 0 1 3u 2 + 2u 3 + p 1 3u 2 2u 3 + p 0 u 2u 2 + u 3 + p 1 u 2 + u 3 We obtain: P u = p 0 1 3u + 3u 2 u 3 + p 1 3u 6u 2 + 3u 3 + p 2 3u 2 3u 3 + p 3 u 3 19

Cubic Spline Curves Normal interpolation of data points Cubic spline interpolation of data points Curves are piecewise cubic curves, made of pieces of different cubic curves glued together. The pieces are so well matched where they are glued that the gluing is not obvious. 20

B-spline Curves Almost the same like Bezier curves (Generalization of the Bezier curves) only that it had second order continuity (1 degree more than Bezier). B-spline used control points for the curves. It is a continuous cubic polynomial that interpolates (passes through) the control points. It produces smoother curve. The polynomial coefficients depend on all central points. Example of Spline: Flexible strip of metal used by draft persons to lay out the surfaces of airplanes, cars & ships. 21

Representations of Geometry Curve Representation 22

EXAMPLE 23

OPERATION MATRICES Translation P = P + d x y z = x y z + x d y d z d 24

OPERATION MATRICES Rotation P = R P About x axis R x = About y axis R y = About z axis R z = 1 0 0 0 cos θ sin θ 0 sin θ cos θ cos θ 0 sin θ 0 1 0 sin θ 0 cos θ cos θ sin θ 0 sin θ cos θ 0 0 0 1 25

OPERATION MATRICES Scaling P = S P x y z = s x 0 0 0 s y 0 0 0 s z x d y d z d 26

OPERATION MATRICES Reflection P = M P Reflection through a principal plane (x = 0 plane) m 11 0 0 M = 0 m 22 0 0 0 m 33 ±1 0 0 = 0 ±1 0 0 0 ±1 27

28

29

COMPUTER AIDED ENGINEERING DESIGN (BFF2612) Dr. Nizar