Docsity

Computer Graphics I: 3D Modeling - Week 9 Lecture Notes - Prof. David E. Breen, Study notes of Computer Graphics

Partial preview of the text

Download Computer Graphics I: 3D Modeling - Week 9 Lecture Notes - Prof. David E. Breen and more Study notes Computer Graphics in PDF only on Docsity!

1

CS 430/

Computer Graphics I

3D Modeling: Solid Models Week 9, Lecture 18 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing Laboratory Department of Computer Science Drexel University http://gicl.cs.drexel.edu

2 Overview

  • 3D solid model representations
    • Implicit models
    • Super/quadrics
    • Blobbies
    • Swept objects
    • Boundary representations
    • Spatial enumerations
    • Distance fields
    • Quadtrees/octrees
    • Stochastic models

4 Quadratic Surfaces

  • Sphere
  • Ellipsoid
  • Torus
  • General form

x

2

+ y

2

+ z

2

= r

2 † x rx Ê Ë Á ˆ ¯ ˜ 2

y ry Ê Ë Á Á ˆ ¯ ˜ ˜ 2

z rz Ê Ë Á ˆ ¯ ˜ 2 = 1 † r - x rx Ê Ë Á ˆ ¯ ˜ 2

y ry Ê Ë Á Á ˆ ¯ ˜ ˜ È 2 Î Í Í ˘ ˚ ˙ ˙ 2

z rz Ê Ë Á ˆ ¯ ˜ 2 = 1 a ⋅ x 2

  • b ⋅ y 2
  • c ⋅ z 2
  • 2 f ⋅ yz + 2 g ⋅ xz + 2 h ⋅ xy + 2 p ⋅ x + 2 q ⋅ y + 2 r ⋅ z + d = 0

5 Superellipsoid Surfaces

  • Generalization of ellipsoid
  • Control parameters s 1 and s 2
  • If s 1 = s 2 =1 then regular ellipsoid
  • Has an implicit and parametric form! s 2 s 1 † x rx Ê Ë Á ˆ ¯ ˜ 2 / s 2

y ry Ê Ë Á Á ˆ ¯ ˜ ˜ È^2 /^ s^2 Î Í Í ˘ ˚ ˙ ˙ s 2 / s 1

z rz Ê Ë Á ˆ ¯ ˜ 2 / s 1 = 1

7 CSG with Superellipsoids

8 Blobby Objects

  • Do not maintain shape, topology - Water drops - Molecules - Force fields
  • But can maintain other properties, like volume

10 Metaballs (Blinn Blobbies)

11 Ray-traced Metaballs

13 Implicit Modeling System

U. of Calgary

Can apply blends and warps

14 Sweep Representations

  • An alternative way to represent a 3D object
  • Idea
    • Given a primitive (e.g. polygon,sphere )
    • And a sweep (e.g. vector, curve…)
    • Define solid as space swept out by primitive Foley/VanDam, 1990/

16 Approximate Representations

  • Idea: discretize the world!
  • Surface Models
    • Mesh, facet and polygon representations
  • Volume Models
    • spatial enumeration
    • voxelization

17 Examples

  • From exact to facets…. Pics/Math courtesy of Dave Mount @ UMD-CP

19 Let’s Start Simple: Polyhedral Solid Modeling

  • Definition
    • Solid bounded by polygons whose edges are each a member of an even number of polygons
    • A 2-manifold: edges members of 2 polygons

20 Properties of 2-Manifolds

  • For any point on the boundary, its neighborhood is a topological 2D disk
  • If not a 2-manifold, neighborhood not a disk Foley/VanDam, 1990/