Intersecting Simple Surfaces

Slides:



Advertisements
Similar presentations
Everything you ever wanted to know about collision detection
Advertisements

Computer Graphics- SCC 342
COMP 175 | COMPUTER GRAPHICS Remco Chang1/6103b – Shapes Lecture 03b: Shapes COMP 175: Computer Graphics February 3, 2015.
CS 450: COMPUTER GRAPHICS FILLING POLYGONS SPRING 2015 DR. MICHAEL J. REALE.
CS 376 Introduction to Computer Graphics 04 / 06 / 2007 Instructor: Michael Eckmann.
Images in Concave Mirrors. Properties  The mirror has a reflecting surface that curves inward.  When you look at objects in the mirror, the image appears.
Week 13 - Wednesday CS361.
1 Ray Tracing Polyhedra ©Anthony Steed
CS 325 Introduction to Computer Graphics 04 / 26 / 2010 Instructor: Michael Eckmann.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
1 Dr. Scott Schaefer Intersecting Simple Surfaces.
An introduction to 3D Figures
Basic Ray Tracing CMSC 435/634.
Chapter Area, Pythagorean Theorem, and Volume 14 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Solid Figures Vocabulary.
Ch 12 and 13 Definitions. 1. polyhedron A solid with all flat surfaces that enclose a single region of space.
Section 12-1 Exploring Solids. Polyhedron Three dimensional closed figure formed by joining three or more polygons at their side. Plural: polyhedra.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Introduction to 3D Solids and Solids of Revolution Some 3D shapes can be formed by revolving a 2D shape around a line (called the axis of revolution).
11.1 Notes Space Figures and Cross Sections. Identifying Nets and Space Figures A polyhedron is a 3-dimensional figure whose surfaces are polygons. -
UNIT 8: VOLUME VOCABULARY 8 TH GRADE MATH MS. CARQUEVILLE.
G.3.J Vocabulary of Three-Dimensional Figures
Volume and Surface Area
Equations of Circles.
Session 2 Draw six segments that pass through every dot in the figure without taking your pencil off the paper.
Session 2 Draw six segments that pass through every dot in the figure without taking your pencil off the paper.
Section 9-1 Basic Terms.
Circles Definitions.
Other Angle Relationships in Circles
Equations of Circles.
A light beam striking a boundary between two media can be partly transmitted and partly reflected at the boundary.
Basic Vocabulary Student Friendly: I will be able to define an angle, circle, perpendicular lines, parallel lines, and line segments using the definition.
6.2 Solving Quadratic Equations by Graphing
6-2 Conic Sections: Circles
11.4 Three Dimensional Figures
INTRODUCTION TO GEOMETRIC SOLIDS.
Surfaces Dr. Scott Schaefer.
Ray Tracing.
10.1 Vocab Day 1 Grab a notes page from the back under Geometry on Wednesday Have notebook and homework out.
12-1 Properties of Polyhedra
4.4 Concave and Convex Mirrors
Circle Centre (a, b) radius r
PMC and Booleans Point-Membership Classification
Equations of Circles.
Warm-up: Fill in all degree and  radian measures of the unit circle
Object Intersection CSE 681.
Object Intersection CSE 681.
REFLECTIONS of PLANE AND SPHERICAL MIRRORS
Spherical Mirrors: concave and convex mirrors.
9.3 Graph and Write Equations of Circles
Ray Tracing Polyhedra ©Anthony Steed
Objectives Identify tangents, secants, and chords.
Text Reference: Chapter 32.1 through 32.2
(c) 2002 University of Wisconsin, CS559
CIRCLES OBJECTIVE: Learn the basic terminology for circles and lines and segments associated with circles.
Work Features Work features are tools that help create and position features by providing points, lines, and planes when current geometry is not sufficient.
2- and 3-Dimensional Figures
Computer Animation Algorithms and Techniques
Chapter 25 Reflection and Mirrors
Standard Equation of a Circle Definition of a Circle
Curved / Spherical Mirrors
GR2 Advanced Computer Graphics AGR
Geometry Chapter : Exploring Solids.
Game Programming Algorithms and Techniques
Tangents.
7.1 Solving Systems of Equations
STANDARD 17:.
Work Features Work features are tools that help create and position features by providing points, lines, and planes when current geometry is not sufficient.
Standard Equation of a Circle Definition of a Circle
GPAT – Chapter 7 Physics.
Presentation transcript:

Intersecting Simple Surfaces Dr. Scott Schaefer

Types of Surfaces Infinite Planes Polygons Convex Ray Shooting Winding Number Spheres Cylinders

Infinite Planes Defined by a unit normal n and a point o

Infinite Planes Defined by a unit normal n and a point o

Infinite Planes Defined by a unit normal n and a point o

Infinite Planes Defined by a unit normal n and a point o

Infinite Planes Defined by a unit normal n and a point o

Infinite Planes Defined by a unit normal n and a point o

Polygons Intersect infinite plane containing polygon Determine if point is inside polygon

Polygons Intersect infinite plane containing polygon Determine if point is inside polygon How do we know if a point is inside a polygon?

Point Inside Convex Polygon

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon Check if point on same side of all edges

Point Inside Convex Polygon

Point Inside Polygon Test Given a point, determine if it lies inside a polygon or not

Ray Test Fire ray from point Count intersections Odd = inside polygon Even = outside polygon

Problems With Rays Fire ray from point Count intersections Odd = inside polygon Even = outside polygon Problems Ray through vertex

Problems With Rays Fire ray from point Count intersections Odd = inside polygon Even = outside polygon Problems Ray through vertex

Problems With Rays Fire ray from point Count intersections Odd = inside polygon Even = outside polygon Problems Ray through vertex Ray parallel to edge

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way One winding = inside

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way

A Better Way zero winding = outside

Requirements Oriented edges Edges can be processed in any order

Computing Winding Number Given unit normal n =0 For each edge (p1, p2) If , then inside

Advantages Extends to 3D! Numerically stable Even works on models with holes (sort of) No ray casting

Intersecting Spheres Three possible cases Zero intersections: miss the sphere One intersection: hit tangent to sphere Two intersections: hit sphere on front and back side How do we distinguish these cases?

Intersecting Spheres

Intersecting Spheres

Intersecting Spheres

Intersecting Spheres is quadratic in t

Intersecting Spheres is quadratic in t Solve for t using quadratic equation If , no intersection If , one intersection Otherwise, two intersections

Normals of Spheres

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 1.Perform an orthogonal projection to the plane defined by C, A on the line L(t) and intersect with circle in 2D

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 2.Substitute t parameters from 2D intersection to 3D line equation

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 3.Normal of 2D circle is the same normal of cylinder at point of intersection

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r