C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 1/10 Describing Shape By Andries van Dam.

Slides:



Advertisements
Similar presentations
Objective: To describe properties of solid shapes such as perpendicular and parallel lines, faces and edges.
Advertisements

COMP 175 | COMPUTER GRAPHICS Remco Chang1/6103b – Shapes Lecture 03b: Shapes COMP 175: Computer Graphics February 3, 2015.
Introduction to shapes
Constructing Objects in Computer Graphics
Characteristics of 3-D Shapes
Extended Gaussian Images
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
CPCS 391 Computer Graphics 1 Lecture 5: Polygon Filling
Bell Ringer Get out your notebook and prepare to take notes on Chapter 8 What is the difference between two-dimensional and three-dimensional?
HCI 530 : Seminar (HCI) Damian Schofield.
Computer Graphics - Class 14
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
Polygonal Meshes 3D Object Representation -Tyler Abrams.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Stuff Andries van Dam September 12, 2006 Transformations 1/33 Transformations.
Mr. Barra Take The Quiz! Polygon with three edges (sides) and three vertices (corners) Sum of all interior angles equals 180° Right triangle One interior.
Three-Dimensional Figure A three-dimensional figure is a shape whose points do not all lie in the same plane.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
Curves and Surfaces (cont’) Amy Zhang. Conversion between Representations  Example: Convert a curve from a cubic B-spline curve to the Bézier form:
Objective: To describe properties of solid shapes such as perpendicular and parallel lines, faces and edges.
CS-321 Dr. Mark L. Hornick 1 3-D Object Modeling.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam September 14, 2004 Transformation 1/32 Transformations.
Copyright - Planchard 2012 History of Engineering Graphics Stephen H. Simmons TDR 200.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
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.
Geometry The strand of math that deals with measurement and comparing figures, both plane and solid .
Attributes A quality that is characteristic of someone or something.
Two- and Three- Dimensional Figures
Space Figures Mr. J. Grossman. Space Figures Space figures are three-dimensional figures or solids. Space figures are figures whose points do not all.
Acute angle An angle with a measure less than 90 degrees.
Slide 5- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Math9 project-ABC Book by: Jeffrey May Teacher: Mrs. burton.
A. Polyhedrons 1. Vocabulary of Polyhedrons 2. Building Polyhedrons a. Create a net from the Polyhedron b. Create the Polyhedron from the net B. Prisms.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Warm Up Classify each polygon. 1. a polygon with three congruent sides 2. a polygon with six congruent sides and six congruent angles 3. a polygon with.
Geometry Review By: Kyle Dykes. Chapter 1 Important Terms – Line: extends in one dimension- – Collinear Points: Points that lie on the same line – Coplanar.
Computer Graphics Drawing Line. Lines and Polylines Convex: For every pair of points in the polygon, the line between them is fully contained in the polygon.
What are these shapes? squarecircletrianglerectangle How many sides do each have? How many points do each have?
Geometry: A Year Around By: Kourtney Mansfield. Chapter 1: Points, Lines, and Planes Point – Has no dimension. Usually represented by a small dot. Point.
12.1 Exploring Solids.
Attributes A quality that is characteristic of someone or something.
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.
Parametric Curves & Surfaces
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Chapter 8 Engineering Geometry
Geometric Shapes and Area
Geometry Vocabulary. Triangle Triangle: a polygon with three sides. 180⁰ Sum of the interior angles of a triangle = 180⁰.
Descriptive Geometry. Introduction  What is Descriptive Geometry? →It is the study of points, lines, and planes in space to determine their locations.
Section 12-1 Exploring Solids. Polyhedron Three dimensional closed figure formed by joining three or more polygons at their side. Plural: polyhedra.
Warm Up Classify each polygon. 1. a polygon with three congruent sides 2. a polygon with six congruent sides and six congruent angles 3. a polygon with.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Vocabulary for the Common Core Sixth Grade.  base: The side of a polygon that is perpendicular to the altitude or height. Base of this triangle Height.
Three-dimensional figures, or solids, can be made up of flat or curved surfaces. Faces– the polygons that make the polyhedron Edges– A line segment formed.
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
Computer Graphics Lecture 07 Ellipse and Other Curves Taqdees A. Siddiqi
Computer Graphics Drawing Line.
Constructing Objects in Computer Graphics
Curve & Surface.
Unit 11: 3-Dimensional Geometry
Constructing Objects in Computer Graphics By Andries van Dam©
Point-a location on a plane.
Unit 11: 3-Dimensional Geometry
Three-Dimensional Object Representation
Analytic Geometry.
Presentation transcript:

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 1/10 Describing Shape By Andries van Dam

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 2/10 Lines and Polylines Convex: For every pair of points in the polygon, the line between them is fully contained in the polygon. Convex vs. Concave Polygons Concave: Not convex: some two points in the polygon are joined by a line not fully contained in the polygon. Polylines: lines drawn between ordered points Same first and last point make closed polyline or polygon If it does not intersect itself, called simple polygon 2D Object Definition (1/3)

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 3/10 Circles Consist of all points equidistant from one predetermined point (the center) (radius) r = c, where c is a constant On a Cartesian grid with center of circle at origin equation is r 2 = x 2 + y 2 trianglesquare rectangle P0P0 P1P1 r 0 y x r Special polygons 2D Object Definition (2/3)

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 4/10 Circle as polygon A circle can be approximated by a polygon with many sides (>15) (Aligned) Ellipses A circle scaled along the x or y axis Example: height, on y-axis, remains 3, while length, on x-axis, changes from 3 to 6 2D Object Definition (3/3)

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 5/10 Representing Shape in 2D General purpose, simple overhead, reasonable efficiency: Vertex and Edge tables Each vertex listed once Each edge is ordered pair of indices into vertex table Sufficient information to draw shape and perform simple operations. Order does not matter, convention is edges listed in counterclockwise order. Vertexes 1(0,0) 2(1,0) 3(0,1) 4(1,1) 5(0.5,1.5) Edges 1(1,2) 2(2,4) 3(4,5) 4(5,3) 5(3,1)

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 6/10 How they work: Parametric curves governed by control points Mathematically: Several representations to choose from. More complicated than vertex lists. See chapter 23 of the book for more information. Simple parametric representation: Advantage: Smooth with just a few control points Disadvantage: Can be hard to control Uses: – representation of smooth shapes. Either as outlines in 2D or with Patches or Subdivision Surfaces in 3D – animation Paths for tweening – approximation of truncated Gaussian Filters Splines (An Alternate Representation)

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 7/10 Vertices in motion (“Generative object description”) Line is drawn by tracing path of a point as it moves (one dimensional entity) Square drawn by tracing vertices of a line as it moves perpendicularly to itself (two dimensional entity) Cube drawn by tracing paths of vertices of a square as it moves perpendicularly to itself (three-dimensional entity) Circle drawn by swinging a point at a fixed length around a center point 2D to 3D Object Definition

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 8/10 Triangles and tri-meshes Parametric polynomials, like the aforementioned splines used to define surface patches. PatchesCurves Boundaries are Polynomial curves In 3D Building 3D Primitives

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 9/10 Triangle Meshes Most common representation of shape in three dimensions All vertices of triangle are guaranteed to lie in one plane (unlike quadrilaterals or other polygons) Uniformity makes it easy to perform mesh operations: subdivision, simplification, etc. Many different ways to represent triangular meshes:

C O M P U T E R G R A P H I C S Stuff Jian Chen January 15, 2010 Transformations 10/10 Representing Shape in 3D Analogous to 2D: Vertex and Triangle Tables Each vertex gets listed once Each triangle is ordered triple of indices into the vertex table Edges between vertexes inferred from triangles Only need the triangular mesh representations to draw the shapes; need not do operations on meshes during CS425 Counterclockwise ordering of vertices for normals