Computer Graphics1 Geometry Area of polygons & Volume Of Polygonal surfaces.

Slides:



Advertisements
Similar presentations
Surface Area and Volume Nets Slide Presentation
Advertisements

Computer Graphics 4: Bresenham Line Drawing Algorithm, Circle Drawing & Polygon Filling By:Kanwarjeet Singh.
Geometry A general review.
1 Planes, Polygons and Objects ©Anthony Steed
Intersection Testing Chapter 13 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Chapter 4.2 Collision Detection and Resolution. 2 Collision Detection Complicated for two reasons 1. Geometry is typically very complex, potentially requiring.
Geometry Primer Lines and rays Planes Spheres Frustums Triangles Polygon Polyhedron.
Determining Net Force. What is Net Force? Net Force is the vector sum of all of the forces on an object. In other words, it’s the “total” of all forces.
CECS461 Computer Graphics II University of Missouri at Columbia Hidden Surface Removal.
12-3. Pyramids  A pyramid is a polyhedron in which one face (the base) can be any polygon and the other faces (the lateral faces) are triangles that.
Triangles, Quadrilaterals, Nets, Prisms & Composite Polygons
7.G.6 Surface Areas of Prisms and Cubes Objective 7.G.6 – Find the surface area of prisms.
Computer Graphics - Class 14
6.3: Surface Areas of Pyramids and Cones
Surface Area and Volume Three-Dimensional Figures and.
Rules for Multiplying and Dividing Integers
ADDING INTEGERS Positive + Positive = Positive Positive + Positive = Positive ( +3) + (+2) = +5 ( +3) + (+2) = +5 When a number is positive, you do not.
Chapter 9 Geometry © 2008 Pearson Addison-Wesley. All rights reserved.
Honors Geometry Section 7.3 Surface Area & Volume of Pyramids
Addition and Subtraction of Integers
Chapter 10: Surface Area and Volume Objectives: Students will be able to find the surface area and volume of three dimensional figures.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
CS 3388 Working with 3D Vectors
Geometry Review. What is a six sided polygon called?
CS 325 Introduction to Computer Graphics 03 / 08 / 2010 Instructor: Michael Eckmann.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
When we add or subtract integers we can use a number line to help us see what is happening with the numbers.
STEM Module VCS April 24, ue&persist_safety_mode=1&safe=active STEM Module VCS April 24,
Stand up! For addition problems, face the positive direction. For subtraction problems, face the negative direction.
Computer Graphics Basic 3D Geometry CO2409 Computer Graphics Week 5-1.
Geometry Review: Basic Concepts of Shapes While the Egyptians and Babylonians demonstrated knowledge about geometry, the Greeks created the first formal.
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
11-3 Surface Areas of Pyramids and Cones
Computer Graphics Camera Projection / Picking CO2409 Week 8 - Optional Advanced Material Not on Exam.
Geometry Mr. Bower BowerPower.net. What is a cone?  When you spin a right triangle (using one of the legs as an axis), you get a cone.
Solid Figures Vocabulary.
Introduction * Binary numbers are represented with a separate sign bit along with the magnitude. * For example, in an 8-bit binary number, the MSB is.
Chapter 11: Surface Area and Volume Section 11-3: Surface Areas of Pyramids and Cones.
Geometric Shapes and Area
Forging new generations of engineers
Back to menu Final jeopardy question Definitions The Round Let’s Cover Fill It The Whole Up It Up Thing
Surface area & Volume of Pyramids Tutorial 13d Pyramids §A pyramid is a polyhedron in which one face (the base) can be any polygon and the other faces.
Welcome to our sixth seminar! We’ll begin shortly.
Area & Perimeter. Page ________ of Notebook Title: Area and Perimeter Title: Area and Perimeter Objective: Find Area and Perimeter Objective: Find Area.
Chapter 10, Part 2 Diamond Problems Factoring 4/13/20101Medina.
Objective Students will solve practical area and perimeter problems involving composite plane figures.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
1.5 Adding Integers. Adding Integers! When adding two positive numbers, Start at 5 Move to the right 7 spaces Answer : 12.
 0-10 pts.) Describe how to find the areas of a square, rectangle, triangle, parallelogram, trapezoid, kite and rhombus. Give at least 3 examples of.
1 CHAPTER 2C- Mohr’s Circle Dr. Zuhailawati Hussain EBB 334 Mechanical Metallurgy.
Lesson: Surface Area of Solids
Volume and Surface Area
The point opposite the base of the pyramid
9.2 Surface Area of Pyramids
Triangles, Quadrilaterals, Nets, Prisms & Composite Polygons
An Introduction to Computational Geometry
Lateral Area, Surface Area, and Notes
Partial Products Algorithm for Multiplication
عناصر المثلثات المتشابهة Parts of Similar Triangles
Complimentary & Supplementary Angles
Computer Graphics Lecture 20
Three –Dimensional Figures
Finding Lengths of Horizontal Lines on a Coordinate Plane
Week 18 Math Vocabulary difference of two squares – two perfect squares separated by a subtraction sign (x2 – 9) = (x+3)(x-3) surface area – the sum of.
Ray Tracing Polyhedra ©Anthony Steed
Objective - To add and subtract decimals.
Lateral Area, Surface Area, and Notes
컴퓨터 그래픽스를 위한 기하학적 기초 (Line Geometry for Computer Graphics)
Geometry: Three Dimensional Solids
Lesson 29- Problem Solving: Area, Volume, and Surface Area
Presentation transcript:

Computer Graphics1 Geometry Area of polygons & Volume Of Polygonal surfaces

Computer Graphics2 Calculating Area n Calculation of the area of a polygon can be done in a very simple way. n Assume that the polygon is represented by (P 0, P 1, P 2,..., P n-1 ), P n =P 0 P0 P1 P2 P3 P4 P5 P6

Computer Graphics3 Step 1 n Consider the problem of calculating the area of the trapezoid that is generated between any 2 consecutive points P i and P i+1 and the X axis. P0 P1 P2 P3 P4 P5 P6 X

Computer Graphics4 Step 2 n Starting from P0, Calculate the area of the trapezoid which is generated between Pi, P i+1 and the X axis. assume P i =(X i,Y i ) and P i+1 =(X i+1, Y i+1 ) u V = (X i+1 - X i)*( Y i+1 + Y i)/2 n Add this area to the total volume sum.

Computer Graphics5 Step 3 n Repeat Step 2 for each 2 consecutive points in the polygon. n At the end of the process, the area will be calculated. (up to the sign) n Note the this algorithm works for two positive, two negative, or even two vertices with different y signes!

Computer Graphics6 Example n Let’s calculate the area of a triangle. V= (x1-x0)(y1+y0)/2+(x2-x1)(y2+y1)/2+(x0-x2)(y0+y2)/2 = |(10+3)(-4-1)/2 + (5-10)(2-4)/2 +(-3-5)(-1+2)/2| = 63/2 X P0=(-3,-1) P1=(10,-4) P2=(5,2)

Computer Graphics7 Volume Of a Polygonal Surface n A similar method can be used to calculate the volume of polygonal surfaces. n We’ll assume that the polygons in the surface are made of triangles. n We will examine the volume that is generated between a single triangle and the x-z plane.

Computer Graphics8 Volumes - Cont. p0 p1 p2 p0’ p1’ p2’ A B

Computer Graphics9 Volumes - Cont. n Calculating the volume is done in 3 stages: u The volume of between A-B-p1 and p2’-p1’- p0’ is simple to calculate. p1 p0’ p1’ p2’ A B

Computer Graphics10 Volumes - Cont. u Now, it’s also simple to calculate the volume of the pyramid p2-B-p1-A p1 p2 A B

Computer Graphics11 Volumes - Cont. u And the final volume part is the pyramid p2-p0-B-p1, which is also easy to calculate p0 p2 B p1

Computer Graphics12 Volumes - Cont. n The sum of these 3 volumes provides us with the total volume between the polygon and the X-Z plane. u This volume may be negative! (depending on the location of the polygon in space) n But hey! when do we add and when do we subtract different volumes? u We can use the normal of the polygon to decide whether it is facing the positive Y direction. u If it does - We add the volume to the total sum u Otherwise we subtract this volume from the total volume sum