Top Banner
1 Dr. Scott Schaefer Surface Simplification
32

1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

Jan 02, 2016

Download

Documents

Basil Thornton
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

1

Dr. Scott Schaefer

Surface Simplification

Page 2: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

2/32

Surface Simplification

Given a closed polygon model, reduce the number of polygons and maintain appearance of the shape

5804 tris 2500 tris 1000 tris 500 tris

Page 3: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

3/32

Reducing Polygons

Perform local, topological operations to reduce number of polygons

Vertex removal

Page 4: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

4/32

Reducing Polygons

Perform local, topological operations to reduce number of polygons

Vertex removal Edge Collapse

Page 5: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

5/32

Reducing Polygons

Perform local, topological operations to reduce number of polygons

Vertex removal Edge Collapse Face Collapse, …

Page 6: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

6/32

Reducing Polygons

Perform local, topological operations to reduce number of polygons

Vertex removal Edge Collapse Face Collapse, …

Page 7: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

7/32

Surface Simplification

How do we determine the order of edge collapse operations?

Where do we place new vertex after collapse?

Page 8: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

8/32

Error Metrics For Simplification

QEF: Quadratic Error Function Measures distance to infinite planes

v

ip

i

iii

ii dvnpvnvE 22)()(

in

Page 9: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

9/32

Error Metrics For Simplification

QEF: Quadratic Error Function Measures distance to infinite planes

v

ip

ii

iii

T

i

Tii

T ddnvvnnvvE 22)(

in

Page 10: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

10/32

Error Metrics For Simplification

QEF: Quadratic Error Function Measures distance to infinite planes

v

ip

ii

iii

T

i

Tii

T ddnvvnnvvE 22)(

insymmetric 3x3 3x1 1x1

Page 11: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

11/32

Error Metrics For Simplification

QEF: Quadratic Error Function Measures distance to infinite planes

v

ip

ii

iii

T

i

Tii

T ddnvvnnvvE 22)(

insymmetric 3x3 3x1 1x1

Requires 10 floats independent of number of polygons!!!

Page 12: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

12/32

Combining QEFS

1v

in

ip2vjp

ii

iii

T

i

Tii

T ddnvvnnvvE 21111 2)(

jj

jjj

T

j

Tjj

T ddnvvnnvvE 22222 2)(

Page 13: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

13/32

Combining QEFS

ii

iii

T

i

Tii

T ddnvvnnvvE 21111 2)(

1v

in

ip2vjp

jj

jjj

T

j

Tjj

T ddnvvnnvvE 22222 2)(

i jji

jjj

iii

T

i j

Tjj

Tii

T dddndnvvnnnnvvE 222)(

Add 10 numbers to combine QEFs!!!

Page 14: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

14/32

Placement of Vertices Using QEFs

Place new vertex at minimum of error function

ii

iii

T

i

Tii

T

vddnvvnnvvE 22)(min

Page 15: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

15/32

Placement of Vertices Using QEFs

Place new vertex at minimum of error function

ii

iii

T

i

Tii

T

vddnvvnnvvE 22)(min

022)(

iii

i

Tii dnvnn

v

vE

Page 16: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

16/32

Placement of Vertices Using QEFs

Place new vertex at minimum of error function

ii

iii

T

i

Tii

T

vddnvvnnvvE 22)(min

022)(

iii

i

Tii dnvnn

v

vE

iii

i

Tii dnnnv

1

Page 17: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

17/32

Placement of Vertices Using QEFs

Place new vertex at minimum of error function

ii

iii

T

i

Tii

T

vddnvvnnvvE 22)(min

022)(

iii

i

Tii dnvnn

v

vE

iii

i

Tii dnnnv

1

Not invertible in flat areas or straight edges!!!

Page 18: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

18/32

Placement of Vertices Using QEFs

Place new vertex at minimum of error function

ii

iii

T

i

Tii

T

vddnvvnnvvE 22)(min

iii

i

Tii dnnnv

Pseudoinverse minimizes |v|

Page 19: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

19/32

Placement of Vertices Using QEFs

Let where c is a point we want to minimize the distance to

ii

iii

T

i

Tii

T ddnccnncvE 2)(2)()()(min

cv

Page 20: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

20/32

Placement of Vertices Using QEFs

Let where c is a point we want to minimize the distance to

ii

iii

T

i

Tii

T ddnccnncvE 2)(2)()()(min

cv

02)(2)(

iii

i

Tii dncnn

vE

Page 21: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

21/32

Placement of Vertices Using QEFs

Let where c is a point we want to minimize the distance to

ii

iii

T

i

Tii

T ddnccnncvE 2)(2)()()(min

cv

02)(2)(

iii

i

Tii dncnn

vE

cnndnnni

Tii

iii

i

Tii

Page 22: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

22/32

Placement of Vertices Using QEFs

Let where c is a point we want to minimize the distance to

ii

iii

T

i

Tii

T ddnccnncvE 2)(2)()()(min

cv

02)(2)(

iii

i

Tii dncnn

vE

ccnndnnncvi

Tii

iii

i

Tii

Page 23: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

23/32

Plane-Based Quadratic Error Function

Compact representation (10 numbers) Fast to combine multiple functions (addition) Relatively easy to minimize (pseudoinverse)

Suffers from numerical instabilities

Page 24: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

24/32

Surface Simplification Algorithm

Build QEFs for each vertex For each edge

Compute combined QEF and error Insert edge into priority queue sorted by

error While poly # > target #

Collapse edge

Page 25: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

25/32

Surface Simplification: Edge Collapse

Place new vertex at minimizer of QEF

Page 26: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

26/32

Surface Simplification: Edge Collapse

Place new vertex at minimizer of QEF QEF of new vertex is combined QEF

Page 27: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

27/32

Surface Simplification: Edge Collapse

Place new vertex at minimizer of QEF QEF of new vertex is combined QEF Remove all edges touching collapsed edge

from priority queue

Page 28: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

28/32

Surface Simplification: Edge Collapse

Place new vertex at minimizer of QEF QEF of new vertex is combined QEF Remove all edges touching collapsed edge

from priority queue Recompute QEF/error for all edges touching

new vertex and insert into priority queue

Page 29: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

29/32

Surface Simplification: Edge Collapse

Edge collapse may alter topology of surface Test for topology change and exclude unsafe

edge collapses Unsafe edge may become safe after another

collapse Alternatively, perform two edge collapses

Page 30: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

30/32

Surface Simplification: Edge Collapse

Edge collapse may alter topology of surface Test for topology change and exclude unsafe

edge collapses Unsafe edge may become safe after another

collapse Alternatively, perform two edge collapses

unsafe edge collapses

Page 31: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

31/32

Surface Simplification: Edge Collapse

Edge collapse may alter topology of surface Test for topology change and exclude unsafe

edge collapses Unsafe edge may become safe after another

collapse Alternatively, perform two edge collapses

Page 32: 1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.

32/32

Surface Simplification

Extremely fast Somewhat memory intensive

Limits maximum surface size Greedy algorithm

Does not guarantee optimal sequence of edge collapses!!!