an effective integration of subdivision surfaces in a hybrid ...antonelm/talks/sgp2013.pdfan...

1
An effective integration of subdivision surfaces in a hybrid computer-aided design system Michele Antonelli 1 Carolina Vittoria Beccari 2 Giulio Casciola 2 Serena Morigi 2 1 Department of Mathematics - University of Padova, Italy 2 Department of Mathematics - University of Bologna, Italy Subdivision surfaces Widely supported in nearly all modeling programs Advantages: flexibility for arbitrary topology + superset of NURBS “standard” A lot of theoretical study and many proposed algorithms potentially useful in CAD, such as surface fitting, reverse engineering, curve lofting Their presence in CAD is still negligible due to: lack of closed-form representation (difficulty of integration into the system) quality and regularity issues around extraordinary points But CAD end-users ask for them! Project NIIT4CAD The main objective of the European project NIIT4CAD is an effective integration of Catmull-Clark subdivision surfaces in a CAD system, which means that: the desired accuracy is achieved all the functionalities of the CAD system are inherited Approach: Suitable local correction of Catmull-Clark surface, capable of guaranteeing the required analytic accuracy Seamless integration into the modeling workflow, exploiting an extensible geometric kernel and the possibility of handling a hybrid boundary representation CAD system paradigm Our integration approach relies on a CAD system based on an extensible geometric kernel, which means: Parametrization and evaluation paradigm: any geometric entity, represented in parametric form, can be integrated by simply implementing the related evaluation algorithm, that acts as an interface with the entire system. In this way, all the functionality of the CAD system are automatically inherited by any newly introduced type of representation Extended boundary representation (B-rep), which allows non-solid model types, so as to integrate surface modeling into a solid modeling environment (hybrid CAD system) Hybrid description of the geometry in the B-rep, that is allowing for the coexistence of different forms of geometric representation in the same model Integration through the Subd B-rep A Subd B-rep represents a B-rep geometric model in which: the B-rep topology is inferred from the subdivision control mesh the geometry of each B-rep face is described as a subdivision surface patch associated with a rectangular parametric domain Control mesh ←→ Subd B-rep Topology: 1 quad face ←→ 1 face 1 n-sided face ←→ n (quad) faces ←→ The Subd B-rep maintains an intuitive associa- tion (1-1 almost everywhere) between the control mesh faces and the B-rep faces Geometry: 1 face ←→ 1 parametric patch S i on Q : =[0, 1] 2 (a) Quad face with a single extraordinary vertex (e.v.) Q ψ S i (b) Quad face with more than one e.v. Q 0 Q 1 Q 2 Q 3 q 0 q 1 q 2 q 3 φ Q ψ S i S i ,0 S i ,1 S i ,2 S i ,3 (c.1) Non-quad face without e.v. Q ψ and scale derivatives S i (c.2) Non-quad face with at least one e.v. Q 0 Q 1 Q 2 Q 3 q 0 q 1 q 2 q 3 φ Q ψ and scale derivatives S i where: ψ Catmull-Clark evaluator [4] φ : Q -→ Q : = σ 2 ρ -1 π 2 τ q -q 0 σ h scaling by a factor h ρ -1 a c.w. rotation around the origin of an angle a τ v translation of a vector v Local correction around extraordinary points We aim at maintaining the nice shape and B-spline nature of Catmull-Clark surfaces in the widest possible area, while improving the analytic properties in the smallest neighborhood of e.v. Polynomial blending: the Catmull-Clark surface is locally blended with a suitable polynomial surface [3, 5] S * i : = w S i +(1 - w ) P blending regions S * i w S i P blended surface weight function Catmull-Clark surface approximating polynomial w s.t. C 2 -transition between S * i and S i Our approach generates a parametric surface evaluable at arbitrary points S i , P, w must be parameterized over a common domain We represent the characteristic map of the subdivision scheme for valence n as a parametric multipatch surface ψ K [n] i : Q -→ K [n] i , i = 0,..., n (n sectors with rotational symmetry) Star-shaped transformation κ i : = ρ i 2π n ψ K [n] 0 σ h φ where: φ(u , v ) : = (u , v ) patch type (a), (c.1) φ (u , v ) patch type (b), (c.2) σ h scaling of h = 4(a), 2(b), 2(c.1), 1(c.2) ψ K [n] 0 : Q h Q -→ K [n] 0 , Q h : =[0, h] 2 ρ i 2π n c.c.w. rotation of angle i 2π n 0 0 1 1 1 2 h 0 1 λ [n] u v s s t t Q Q h Q h Q S i K [n] 0 D n D n σ h φ ψ S i ψ K [n] 0 ρ i 2π n κ i Star-shaped domain K n : = n-1 i =0 (s , t ) : = κ i (u , v ) (u , v ) Q and σ h (φ(u , v )) Q Blending region D n : = (s , t ) K n (s , t )2 λ [n] where λ [n] = subdominant eigenvalue of the subdivision matrix Blended surface S * i (u , v ) : = w (s , t )S i (u , v )+(1 - w (s , t ))P(s , t ) (s , t ) D n S i (u , v ) elsewhere The approximating polynomial P is determined by least square fitting inside the blending region with interpolation of the e.v. Practical modeling Workflow for the creation and editing of a Subd B-rep (applies to those faces of the hybrid B-rep model that are of subdivision type) Operations of solid composition generate a B-rep whose faces can have hybrid nature (e.g. NURBS + subdivision) and are editable while maintaining this feature Hybrid model and quality assessment w.r.t. Catmull-Clark surface mean curvature Catmull-Clark local correction isophotes (out of scale) References [1] A NTONELLI M., B ECCARI C. V., C ASCIOLA G., C IARLONI R., M ORIGI S.: Subdivision surfaces integrated in a CAD system. Comput. Aided Des. (2013). doi:10.1016/j.cad.2013.06.007. [2] B ECCARI C. V., F ARELLA E., L IVERANI A., M ORIGI S., RUCCI M.: A fast interactive reverse-engineering system. Comput. Aided Des. 42, 10 (2010), 860–873. [3] L EVIN A.: Modified subdivision surfaces with continuous curvature. In Proc. SIGGRAPH ’06 (2006), pp. 1035–1040. [4] S TAM J.: Exact evaluation of Catmull-Clark subdivision surfaces at arbitrary parameter values. In Proc. SIGGRAPH ’98 (1998), pp. 395–404. [5] Z ORIN D.: Constructing curvature-continuous surfaces by blending. In Proc. Eurographics SGP ’06 (2006), pp. 31–40. Eurostars project New Interactive and Innovative Technologies for CAD (2010–2013)

Upload: others

Post on 02-Sep-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An effective integration of subdivision surfaces in a hybrid ...antonelm/talks/SGP2013.pdfAn effective integration of subdivision surfaces in a hybrid computer-aided design system

An effective integration of subdivision surfaces in a hybri d computer-aided design systemMichele Antonelli1 Carolina Vittoria Beccari2 Giulio Casciola2 Serena Morigi2

1Department of Mathematics - University of Padova, Italy 2Department of Mathematics - University of Bologna, Italy

Subdivision surfaces

Widely supported in nearly all modeling programs

Advantages: flexibility for arbitrary topology + supersetof NURBS “standard”

A lot of theoretical study and many proposedalgorithms potentially useful in CAD, such as surfacefitting, reverse engineering, curve lofting

Their presence in CAD is still negligible due to:• lack of closed-form representation (difficulty of

integration into the system)• quality and regularity issues around extraordinary

points

IBut CAD end-users ask for them!

Project NIIT4CAD

The main objective of the European project NIIT4CADis an effective integration of Catmull-Clark subdivisionsurfaces in a CAD system, which means that:• the desired accuracy is achieved• all the functionalities of the CAD system are inherited

Approach :•Suitable local correction of Catmull-Clark surface,

capable of guaranteeing the required analyticaccuracy•Seamless integration into the modeling workflow,

exploiting an extensible geometric kernel and thepossibility of handling a hybrid boundaryrepresentation

CAD system paradigm

Our integration approach relies on a CAD systembased on an extensible geometric kernel, whichmeans:•Parametrization and evaluation paradigm : any

geometric entity, represented in parametric form, canbe integrated by simply implementing the relatedevaluation algorithm, that acts as an interface with theentire system. In this way, all the functionality of theCAD system are automatically inherited by any newlyintroduced type of representation•Extended boundary representation (B-rep), which

allows non-solid model types, so as to integratesurface modeling into a solid modeling environment(hybrid CAD system)•Hybrid description of the geometry in the B-rep, that

is allowing for the coexistence of different forms ofgeometric representation in the same model

Integration through the Subd B-rep

A Subd B-rep represents a B-rep geometric model inwhich:• the B-rep topology is inferred from the subdivision

control mesh• the geometry of each B-rep face is described as a

subdivision surface patch associated with arectangular parametric domain

Control mesh ←→ Subd B-rep

• Topology: 1 quad face ←→ 1 face1 n-sided face ←→ n (quad) faces

←→

The Subd B-rep maintains an intuitive associa-tion (1-1 almost everywhere) between the controlmesh faces and the B-rep faces

• Geometry: 1 face ←→ 1 parametricpatch Si onQ := [0, 1]2

(a) Quad face with a single extraordinary vertex (e.v.)

Q ψ Si

(b) Quad face with more than one e.v.

Q0 Q1

Q2Q3

q0 q1

q2q3

φ` Qψ

Si

Si,0 Si,1

Si,2Si,3

(c.1) Non-quad face without e.v.

Q

ψ andscale derivatives Si

(c.2) Non-quad face with at least one e.v.

Q0 Q1

Q2Q3

q0 q1

q2q3

φ` Q

ψ andscale

derivativesSi

where:ψ Catmull-Clark evaluator [4]φ` : Q` −→ Q, φ` := σ2 ◦ ρ

−1`π2◦ τq`−q0

σh scaling by a factor hρ−1

a c.w. rotation around the origin of an angle aτv translation of a vector v

Local correction around extraordinary points

We aim at maintaining the nice shape and B-splinenature of Catmull-Clark surfaces in the widest possiblearea, while improving the analytic properties in thesmallest neighborhood of e.v.

Polynomial blending : the Catmull-Clark surface islocally blended with a suitable polynomial surface [3, 5]

S∗i := w Si + (1− w) P

blending regions

S∗i w Si P

blendedsurface

weightfunction

Catmull-Clarksurface

approximatingpolynomial

•w s.t. C2-transition between S∗i and Si

Our approach generates a parametric surfaceevaluable at arbitrary points

•Si,P,w must be parameterized over a common domain

•We represent the characteristic map of the subdivisionscheme for valence n as a parametric multipatchsurface ψK[n]

i: Q −→ K[n]

i , i = 0, . . . ,n (n sectors withrotational symmetry)

•Star-shaped transformationκi := ρi 2π

n◦ ψK[n]

0◦ σh ◦ φ

where:

φ(u, v) :=

{

(u, v) patch type (a), (c.1)

φ`(u, v) patch type (b), (c.2)

σh scaling of h = 4(a),2(b),2(c.1), 1(c.2)

ψK[n]

0: Qh

Q −→ K[n]0 , Qh := [0,h]2

ρi 2πn

c.c.w. rotation of angle i 2πn

0 01 112

h

0 1λ[n]

u

v

s

st

t

Q Qh

Qh∣

Q

Si

K[n]0

Dn

Dn

σh ◦ φ

ψSi

ψK[n]0

ρi 2πn

κi

•Star-shaped domain

Kn :=

n−1⋃

i=0

{

(s, t) := κi (u, v)∣

∣(u, v) ∈ Q and σh(φ(u, v)) ∈ Q

}

•Blending regionDn :=

{

(s, t) ∈ Kn

∣‖(s, t)‖2 6 λ[n]

}

where λ[n] = subdominant eigenvalue of the subdivision matrix

•Blended surface

S∗i (u, v) :=

{

w(s, t)Si(u, v) + (1− w(s, t))P(s, t) (s, t) ∈ Dn

Si(u, v) elsewhere

The approximating polynomialP is determined by least squarefitting inside the blending regionwith interpolation of the e.v.

Practical modeling

•Workflow for the creation and editing of a Subd B-rep(applies to those faces of the hybrid B-rep model thatare of subdivision type)

•Operations of solid composition generate a B-repwhose faces can have hybrid nature (e.g. NURBS +subdivision) and are editable while maintaining thisfeature

•Hybrid model and quality assessment w.r.t.Catmull-Clark surface

meancurvature

Catmull-Clark local correction

isophotes

(out of scale)

References

[1] ANTONELLI M., BECCARI C. V., CASCIOLA G., CIARLONI R.,MORIGI S.: Subdivision surfaces integrated in a CAD system.Comput. Aided Des. (2013). doi:10.1016/j.cad.2013.06.007.

[2] BECCARI C. V., FARELLA E., LIVERANI A., MORIGI S., RUCCI

M.: A fast interactive reverse-engineering system. Comput. AidedDes. 42, 10 (2010), 860–873.

[3] LEVIN A.: Modified subdivision surfaces with continuouscurvature. In Proc. SIGGRAPH ’06 (2006), pp. 1035–1040.

[4] STAM J.: Exact evaluation of Catmull-Clark subdivision surfacesat arbitrary parameter values. In Proc. SIGGRAPH ’98 (1998),pp. 395–404.

[5] ZORIN D.: Constructing curvature-continuous surfaces byblending. In Proc. Eurographics SGP ’06 (2006), pp. 31–40.

Eurostars project New Interactive and Innovative Technolo gies for CAD (2010–2013)