introduction to computer graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf ·...

13
Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Subdivision Curves Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Subdivision

Upload: others

Post on 10-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARY

Subdivision Curves

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARYCubic B-spline Subdivision

Page 2: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARY Properties

Piecewise cubic polynomials

The limit curve is

Widely used in applications

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARY Open Curves vs Closed Curves

Closed Chaikin algorithm

Regular setting for open case

Open case with the interpolating condition for the first and thelast

The first point conditions

Symmetry the end point conditions

Page 3: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARY Cubic B-spline Case

Closed Chaikin algorithm

Regular setting for open case

Open case with the interpolating condition for the first and thelast points

For the beginning

Symmetry the end point conditions

Graphics IFaramarz Samavati

UNIVERSITY OF

CALGARY Tensor product surface Using the curve subdivision rules for two independent directions

Assume that the pixel values are z-values for a mesh

each row

each column

Page 4: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

u-direction:use curve schemes for seven times

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

v-direction: use curveschemes separately

Page 5: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Tensor product of Cubic B-Spline Subdivision

Page 6: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Bezier Surface

Subdivision schemes for two directions

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Page 7: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Editing

Page 8: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Utah Tea Pot

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Parametric Surface

A is usually a rectangular domain.

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Parameter Domain

A

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Free Form Surfaces:Tensor Product Surface

Straight forward generalization of curve methods to surfaceBezier patch

Basis functions are Berenstein polynomial

Page 9: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Tensor Product Surface

Continuous deformation of a sheet of paper u-curves v-curves

A

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Surfaces Having arbitrary Topologies

Tensor Product Surfaces

Non Tensor SurfacesWe can’t find u-curves and v-curves in general surfaces

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

Coarse mesh Fine mesh

DOO-Sabin

Loop

Catmull-Clark

Butterfly

Kobbelt

General SubdivisionIt is not in the exam and assignments

Subdivision

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Example of Subdivision

Page 10: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY From Chaikin to Doo-Sabin Subdivision

3D corner cutting methodGeneralization of ChaikinEach step =2 stagesContracting and adjoining

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY One Step of Doo Subdivision

One Step of Subdivision (F,V) (NF,NV)

Line Face Curve Surface

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Types of Faces

Three types of New Faces(NF) :

FF : Face- to - Face

FE : Face - to - Edge

FV: Face - to - vertexFFFF

FEFE

FFFF

FVFV

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Edge-to-faces

New Contracted Face

New Contracted Face

Page 11: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Mask Details

Interior vertices

9/16 3/16

3/16 1/16

n= number of vertices on face

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Doo Surface Properties

Convex hull property Large region of the new polyhedron are covered quad faces.Limit surface is

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Examples

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY

3D Studio Max

Examples

Page 12: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Loop Subdivision

A triangle-based subdivision

Triangular mesh Triangular mesh

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Face Splitting

F

A

D C B

Every face splits to four new facesF A,B,C,DUpdating the face structure

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Mask for Edge-Vertex

edge-vertex

vertex-vertex

Edge-vertex mask

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Displacement Mask

Page 13: Introduction to Computer Graphicspages.cpsc.ucalgary.ca/~sheelagh/courses/453/modeling2.pdf · 2003-11-16 · Graphics I Faramarz Samavati UNIVERSITY OF CALGARY Cubic B-spline Case

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Mask for Vertex-Vertex

n: number of adjacent vertices (valences)n > s

has much more influence on than other neighbors

n=3 , or

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY Demo

Graphics IFaramarz Samavati

UNIVERSITY OFCALGARY