Computational Geometry The art of finding algorithms for solving geometrical problems Literature: –M. De Berg et al: Computational Geometry, Springer,

Slides:



Advertisements
Similar presentations
Vector Spaces A set V is called a vector space over a set K denoted V(K) if is an Abelian group, is a field, and For every element vV and K there exists.
Advertisements

Lecture #3; Based on slides by Yinyu Ye
6.1 Vector Spaces-Basic Properties. Euclidean n-space Just like we have ordered pairs (n=2), and ordered triples (n=3), we also have ordered n-tuples.
2. Voronoi Diagram 2.1 Definiton Given a finite set S of points in the plane , each point X of  defines a subset S X of S consisting of the points of.
3. Delaunay triangulation
Computational Geometry The art of finding algorithms for solving geometrical problems Literature: –M. De Berg et al: Computational Geometry, Springer,
Signal , Weight Vector Spaces and Linear Transformations
Signal , Weight Vector Spaces and Linear Transformations
Computational Geometry The art of finding algorithms for solving geometrical problems Literature: –M. De Berg et al: Computational Geometry, Springer,
Exercise 1- 1’ Prove that if a point B belongs to the affine / convex hull Aff/Conv (A 1, A 2, …, A k ) of points A 1, A 2,…, A k, then: Aff/Conv (A 1,
1.4 Exercises (cont.) Definiton: A set S of points is said to be affinely (convex) independent if no point of S is an affine combination of the others.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
Dimension of a Vector Space (11/9/05) Theorem. If the vector space V has a basis consisting of n vectors, then any set of more than n vectors in V must.
Lecture 14 Simplex, Hyper-Cube, Convex Hull and their Volumes
Exersise 01 If A 1 is the foot of the bisector at A of the triangle ABC, and b, c the lengths of the sides CA, AB respectively, then A 1 = (Bb + Cc)/(b.
Chapter 1 Systems of Linear Equations
2005/8Vectors-1 Vectors in n-space. 2005/8Vectors-2 Definition of points in space A pair of numbere (x, y) can be used to represent a point in the plane.
Chin-Sung Lin. Mr. Chin-Sung Lin  Distance Formula  Midpoint Formula  Slope Formula  Parallel Lines  Perpendicular Lines.
MA5209 Algebraic Topology Wayne Lawton Department of Mathematics National University of Singapore S ,
Fall 2012 Geometry Exam Review. Chapter 1-5 Review p ProblemsAnswers 1One 2a.Yes, skew b.No 3If you enjoy winter weather, then you are a member.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Math Primer for CG Ref: Interactive Computer Graphics, Chap. 4, E. Angel.
Geometry CSC 2141 Introduction to Computer Graphics.
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
Linear Algebra Chapter 4 Vector Spaces.
ME 1202: Linear Algebra & Ordinary Differential Equations (ODEs)
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Multivariate Statistics Matrix Algebra II W. M. van der Veld University of Amsterdam.
4 4.4 © 2012 Pearson Education, Inc. Vector Spaces COORDINATE SYSTEMS.
Chapter 2: Vector spaces
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Deriving big formulas with Derive and what happened then David Sjöstrand Sweden.
Chapter 3 Vector Spaces. The operations of addition and scalar multiplication are used in many contexts in mathematics. Regardless of the context, however,
Vectors CHAPTER 7. Ch7_2 Contents  7.1 Vectors in 2-Space 7.1 Vectors in 2-Space  7.2 Vectors in 3-Space 7.2 Vectors in 3-Space  7.3 Dot Product 7.3.
©College of Computer and Information Science, Northeastern University CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 12 – October 1, 2012.
Chap. 6 Linear Transformations
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Vectors Addition is commutative (vi) If vector u is multiplied by a scalar k, then the product ku is a vector in the same direction as u but k times the.
Warm-up Write the following formulas 1.Distance 2.Midpoint What is the Pythagorean Theorem?
VECTORS (Ch. 12) Vectors in the plane Definition: A vector v in the Cartesian plane is an ordered pair of real numbers:  a,b . We write v =  a,b  and.
Chap. 5 Inner Product Spaces 5.1 Length and Dot Product in R n 5.2 Inner Product Spaces 5.3 Orthonormal Bases: Gram-Schmidt Process 5.4 Mathematical Models.
Chap. 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
I.4 Polyhedral Theory 1. Integer Programming  Objective of Study: want to know how to describe the convex hull of the solution set to the IP problem.
Geometry Chapter 3 Parallel Lines and Perpendicular Lines Pages
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
 An image is the new figure, and the preimage is the original figure  Transformations-move or change a figure in some way to produce an image.
Chapter 6: Similarity By Elana, Kate, and Rachel.
Computer Graphics I, Fall 2010 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Linear Programming Chap 2. The Geometry of LP  In the text, polyhedron is defined as P = { x  R n : Ax  b }. So some of our earlier results should.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
Chapter 1 Linear Equations and Vectors
Chapter 2.6 (Part 1): Prove Statements about Segments and Angles
CSC461: Lecture 12 Geometry Objectives
Identifying Congruent Figures
Lecture 03: Linear Algebra
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
11 Vectors and the Geometry of Space
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
Introduction to Computer Graphics with WebGL
Signal & Weight Vector Spaces
Signal & Weight Vector Spaces
I.4 Polyhedral Theory (NW)
Quantum Foundations Lecture 3
Linear Algebra Lecture 24.
I.4 Polyhedral Theory.
Eigenvalues and Eigenvectors
Approximation of Functions
Presentation transcript:

Computational Geometry The art of finding algorithms for solving geometrical problems Literature: –M. De Berg et al: Computational Geometry, Springer, –H. Edelsbruner: Algorithms in Combinatorial Geometry, Springer, –J. Goodman, J.O‘Rourke: Handbook of Discrete and Computational Geometry, CRC Press, 1997

1. Convex Hull 1.1 Euclidean 2-dimensional space E 2 Real Vector Space V n (V,+,); The affine coordinates of points on the line. a 1 x 1 + a 2 x 2 = b (eq. 1) AX = AB  X – A = (B - A)  X = (1 - ) A + B (eq. 2) or (m+n)X=n A + mB (eq. 3) A X B (1  m n Figure1

is unique in AX = AB, therefore also in (eq. 2).  m and n are up to a scalar multiple unique in (eq 3).  Such pairs (m,n) of real numbers are called affine coordinates of X wrt. A and B, point X is called an affine combination of the points A and B. Examples: The midpoint A 1 = (B + C)/2 The foot of the bisector at A (Figure 2) A 1 = (Bb + Cc)/(b + c) (Excersise 01) because m:n=b:c The foot of the normal at A (Figure 3) A 1 = (Btg  + Ctg  )/(tg  + tg  ) (Excersise 02) A C B  /2 c b Figure2 m n A C B Figure3 m n   90 o A1A1 A1A1 c  /2

The affine coordinates in the plane. AX = AB + μAC (eq.4)  X= B + μC + (1- - μ) A (eq.5)  (l+m+n) X= lB + mC + nA (eq.6) and μ are unique in (eq.4) and (eq.5)  l,m,n are up to a scalar multiple unique in (eq 6).  Such numbers (l,m,n) are called affine coordinates of X wrt. A,B and C, whereas X is an affine combination of A, B, and C. The coefficients 1 and μ 1 in the eq. 4 corresponding to A 1 have the property: :μ= 1 :μ 1 = CA 1 : A 1 B. (Excersise 04) A C B X μ A C B A1A1 μ l m

Hence, if (l+m+n) X= lB + mC + nA, then CA 1 :A 1 B=l:m, BC 1 :C 1 A=n:l, AB 1 :B 1 C=m:n.  CA 1 :A 1 B * BC 1 :C 1 A * AB 1 :B 1 C = 1 (eq. 7) On the other hand, the lines AA 1,BB 1,CC 1 satisfying eq. 7 intersect or are parallel (Excersise 05). Examples ( Excersises 06,07,08 ): The baricenter T of ABC satisfies T = (A + B + C)/3 The center of the inscribed cicrle in ABC satisfies S = (Aa + Bb + Cc)/(a + b + c) The orthocenter of ABC satisfies A 1 = (Atg  + Btg  + Ctg  )/(tg  + tg  + tg  ) A C B A1A1 B1B1 C1C1

1 A A 2 + … + k A k, … + k  Affine combination of points A 1, A 2,…A k : 1,…, k  1.2 Affine / Convex Combination Convex combination of points A1, A2,…Ak : 1 A A 2 + … + k A k, … + k 

Affine Hull of a finite set of points A 1,…, A k  1 A A 2 + … + k A k : … + k  Convex Hull of a finite set of points A 1,…, A k  1 A A 2 + … + k A k : … + k  i  1.3 Affine / Convex Hull Affine (Convex) Hull of a set S, notation Aff (S) (Conv (S)), is the set of all affine (convex) combinations of finite subsets of S.

Examlpes Line AB is the affine hull of A and B. Plane ABC is the affine hull of noncolinear points A, B and C. Segment [A,B] is the set of points on AB which are between A and B, i.e. the set of convex combinations of A and B. Triangle ABC is the set of convex combinations of A,B and C.

1.4 Exercises Exercise 1 Prove that if a point B belongs to the affine hull Aff (A 1, A 2, …, A k ) of points A 1, A 2,…, A k, then: Aff (A 1, A 2,…, A k ) = Aff (B,A 1, A 2,…, A k ).

Exercise 2 Prove that the affine hull Aff (A 1, A 2, …, A k ) of points A 1, A 2,…, A k contains the line AB with each pair of its points A,B. Moreover, prove that Aff (A 1, A 2, …, A k ) is the smallest set containing {A 1, A 2, …, A k } and having this property. [This property therefore may serve as a definition of affine sets. ] (Hint: proof by induction.) 1.4 Exercises (cont.)

Exercise 3 Prove that Aff (A 1,, A 2, …, A k ) is independent of the transformation of coordinates. Definition: Affine transformation of coordinates: Matrix multiplication : X -> X M nn Matrix translation: X-> X + O’ 1.4 Exercises (cont.)

Reformulate exercises 1-3 by substituting: Aff (A 1, A 2, …, A k ) with Conv (A 1, A 2, …, A k ) line AB with segment [A,B]. Definition: Convex set is a set which contains the segment [A,B] with each pair of its elements A and B. Exercise 1’-3’

1.4 Exercises (cont.) If a convex set S contains the vertices A 1, A 2, …, A k of a polygon P=A 1 A 2 …A k, it contains the polygon P. (Hint: Interior point property). Exercise 4

Prove that Aff (S) (Conv ( S)) is the smallest affine (convex) set containing S, i. e. the smallest set X which contains the line AB (segment [AB]) with each pair of points A, B  X. Alternatively: Definition: Convex Hull of a set of points S, notation Conv (S ) is the smallest convex set containing S. 1.4 Exercises (cont.) Exercise 5-5’

1.4 Exercises (cont.) Prove that: Aff (A 1, A 2, …, A k ) = Aff (A 1,, Aff (A 2, …, A k ) ). Conv (A 1, A 2, …, A k ) = Conv (A 1,, Conv (A 2, …, A k ) ). Exercise 6-6’

1.4 Exercises (cont.) Definiton: A set S of points is said to be affinely (convex) independent if no point of S is an affine combination of the others. Affine (convex) basis B S of a set S is an affinely (convex) independent subset of S such that every point in S is an affine (convex) combination of points from B S. A set A 1, A 2,…, A k is affinely independent if and only if the set of vectors A 1 A 2,…, A 1 A k is linearly independent. Exercise 7

Every set in E n has an affine basis of k  n+1 points. (easy to prove). It has also a convex basis (not easy to prove), which is not necessarily finite. A number of points in an affine basis of a set S is constant and said to be the dimension of S. Therefore...

Theorem If S is a finite set of points, then Conv (S) is a polygon with the vertices in S. Proof: 1. There is a convex polygon P S with the vertices in S. (for example, Algorithm1) 2. P S = Conv (S).