Lecture 5 Basic geometric objects

Slides:



Advertisements
Similar presentations
Splines I – Curves and Properties
Advertisements

IT300: Introduction to Computer Graphics
Computer Graphics- SCC 342
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
CS 450: COMPUTER GRAPHICS FILLING POLYGONS SPRING 2015 DR. MICHAEL J. REALE.
Geometric Transformations
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
CMPE 466 COMPUTER GRAPHICS
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
Graphics Output Primitives Pixel Addressing and Fill Area Dr. M. Al-Mulhem Feb. 1, 2008.
Math 310 Sections Isometry. Transformations Def A transformation is a map from the plane to itself that takes each point in the plane to exactly.
ENDS 375 Foundations of Visualization Geometric Representation 9/30/04.
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
3-D Modeling Concepts V part 2.
Splines III – Bézier Curves
CSE53111 Computational Geometry TOPICS q Preliminaries q Point in a Polygon q Polygon Construction q Convex Hulls Further Reading.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Reagan’s unit 5 math vocab
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
1 CMT Fundamentals of Computer Graphics Revision Dr. Xiaohong Gao BG---Room 2C23 Week 11.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
Part7: Geometric Transformations
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
Vector Graphics Digital Multimedia Chap 이병희
Two-Dimensional Geometric Transformations ch5. 참조 Subjects : Basic Transformations Homogeneous Coordinates Composite Transformations Other Transformations.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
Geometric Transformations
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.
In the name of God Computer Graphics Bastanfard. Curve Function(2) Other method is approximate it using a poly-line. Just locate a set of points along.
Splines I – Curves and Properties based on: Michael Gleicher Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
2D Geometric Transformation Translation A translation is applied to an object by repositioning it along a straight-line path from one coordinate location.
Creating Vectors – Part One 2.02 Understand Digital Vector Graphics.
Lecture 15: Raster Graphics and Scan Conversion
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, N Y S S, India DTEL DTEL (Department for Technology.
Computer Graphics Lecture 08 Taqdees A. Siddiqi Computer Graphics Filled Area Primitives I Lecture 08 Taqdees A. Siddiqi
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
CSCE 441 Computer Graphics: 2D Transformations
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
Introduction to Transformations / Translations. By the end of this lesson, you will know… Transformations in general: A transformation is a change in.
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
3-D Modeling Concepts V part 2.
Computer Graphics 2D Transformations
Physical Structure of GDB
2D Transformations By: KanwarjeetSingh
Computer Graphics CC416 Week 15 3D Graphics.
3-D Modeling Concepts V part 2.
Unit 11: 3-Dimensional Geometry
Translations and Reflections
Lecture 7 Geometric Transformations (Continued)
Fitting Curve Models to Edges
Point-a location on a plane.
Unit 11: 3-Dimensional Geometry
Chapter 5 Curves and Fractals.
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
3-D Modeling Concepts V part B.
Lesson 2.6 Subsets of Space pp
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
Create 3D Solid Objects. Create 3D Solid Objects.
2D/3D Transformations User Interfaces.
3-D Modeling Concepts V part 2.
Creating Vectors – Part One
Creating Vectors – Part One
Transformations, Translations, Reflections and Rotations
Presentation transcript:

Lecture 5 Basic geometric objects Computer Graphics Lecture 5 Basic geometric objects

Basic Geometric Objects The basic geometric objects in computer graphics are usually called primitives or graphics output primitives. The basic primitives are the following ones. Points that are uniquely defined by their x- and y-coordinate. Points are usually not drawn themselves. Their main function is the description of other objects like lines that can be defined by their two endpoints. Lines, polylines or curves can be defined by two or more points. Whereas for a line two points are needed, curves require additional control points. Polylines are connected sequences of lines. Areas are usually bounded by closed polylines or polygons. Areas can be filled with a colour or a texture.

The simplest curve is a line segment or simply a line. A sequence of line where the following line starts where the previous one ends is called a polyline. If the last line segment of a polyline ends where the first line segment started, the polyline is called a polygon. A polygon or, more generally, an area or a region is convex if whenever two points are within the region the connecting line between these two points lies completely inside the region as well.

Figure shows a self-overlapping polygon, a nonconvex polygon and a convex polygon

For the non convex polygon two points inside the polygon are chosen and connected by a dotted line that lies not completely inside the polygon. The curve begins and ends in the two specified endpoints. In addition to the endpoints of the curve, one or more control points have to be specified. The control points define the direction of the curve in the two endpoints.

Two Types of Curves Quadratic curve - consists of one control point and two endpoints. 2. Cubic curve – consists of two control points

Other important curves in computer graphics are circles, ellipses and circular and elliptic arcs, axes-parallel rectangles. Instead of specifying a polygon or the boundary directly in order to define an area, it is sometimes more convenient to construct a more complicated area by combining previously defined areas using set-theoretic operations. The most important operations are - union - intersection - difference - symmetric difference

The union joins two areas to a larger area. Intersection consists of the part belonging to both areas. The difference of an area with another removes all parts from the first area that also belong to the second area. The symmetric difference corresponds to a pointwise exclusive OR-operation applied to the two areas. The symmetric difference is the union of the two areas without their intersection.

Figure shows the results of applying these operations to two areas in the form of a circle and a rectangle

Geometric Transformations Transform – to change. Geometric Transformations – are used to: - change size, shape, orientation or position of the graphical objects. - change the coordinate positions of the objects. - construct new areas from already existing ones.

Types of Transformations Translation Rotation Scaling Reflection Shearing

We can represent a point in the plane as a column vector a row vector

Translation Translation means changing the position of an object. Moving the object from one place to another. It is applied by repositioning the object along a straight line path from one coordinate location to another. Translation is done by adding translation distances to both coordinate points (x,y) That is, x’ = x + tx y’ = y + ty

The translation distance pair (tx, ty) is called translation vector or shift vector. Translation moves the objects without deforming them. It means it moves every point of object by same amount.

Point Translation

Line Translation Is done by applying the translation distance to both endpoints of a line. x1’ = x1 + tx1 y1’ = y1 + ty1 y x2’ = x2 + tx2 (x2, y2) (x2’, y2’) y2’ = y2 + ty2 (x1, y1) (x1’, y1’) x