New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and...

10
New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University 995 Eomgwangro, Busanjingu, Busan, 614-714, KOREA [email protected] Ho-Sook Kim Division of Advanced Computer Information, Dong-Eui Institute of Technology 152 Yangji 5 ro, Busanjingu, Busan, 614-715, KOREA [email protected] Abstract: - The local geometric properties such as curvatures and normal vectors play important roles in analyzing the local shape of objects. The result of the geometric operations such as mesh simplification and mesh smoothing is dependent on how to compute the normal vectors and the curvatures of vertices, because there are no exact definitions of the normal vector and the discrete curvature in meshes. Therefore, the discrete curvature and normal vector estimation play the fundamental roles in the fields of computer graphics and computer vision. In this paper, we propose new methods for computing normal vector and curvature well, which are more intuitive than the previous methods. Our normal vector computation algorithm is able to compute the normal vectors more accurately and is available to meshes of arbitrary topology. It is due to the properties of local conformal mapping and the mean value coordinates. Secondly, we point out the fatal error of the previous discrete curvature estimations, and then propose a new discrete sectional-curvature estimation to be able to overcome the error. The method is based on the parabola interpolation and the geometric properties of Bezier curve. It is confirmed by experiment that the normal vector and the curvature generated by our algorithm are more accurate than that of the previous methods. Key-Words: - Normal vector, curvature, local geometric property, mesh segmentation 1 Introduction The complicated objects dealt in the field of computer graphics may be obtained by acquiring 3D position information by using 3D scanners, or generated by operating 3D modeling tools such as 3D Studio MAX or Maya. In order to efficiently deal with the objects, they may be represented by a form of mesh which includes the position information of vertices and the connectivity of them. According to the demand of users, the geometric operations such as mesh simplification and smoothing are applied to the objects[1,2,3]. In order to accomplish such geometric operations efficiently, we have to find out rightly the local properties of the mesh. In general, normal vector and curvature play the important roles as the local properties in the field of differential geometry such as curve and surface [19,20]. So the users want to use the same properties in the discrete space such as polygon and mesh as they were. However, there is not the exact formula of such properties because mesh is a discrete type. Therefore, we need a more exact measure of the local properties. Especially, the normal vector of vertices plays an important role in the rendering process which makes much account of reality. 2 Previous Works 2.1 Normal Vector There are two approaches in the computation of normal vectors [4,5]. The first approach is to approximate the surface interpolating a vertex and compute the normal vector of the surface at the vertex. The result of this approach is tightly dependent on the configuration of the 1-ring neighborhood vertices and the degree of approximated surface. The second approach is to combine the normal vectors of faces adjacent to a vertex. Gouroud proposed the first algorithm of this approach that uses the average ( G N ) of the normal vectors of adjacent faces to the vertex in a triangular mesh [6]. This method is simple so that it is fast. However, it never uses the geometric information of the neighborhood of the vertex so that we can not apply a variety of geometric operations directly. Moreover, this method may bring the different normal vectors according to the change of topology as shown in Figure 1. WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim ISSN: 1109-2750 1661 Issue 10, Volume 8, October 2009

Transcript of New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and...

Page 1: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

New Computation of Normal Vector and Curvature

Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

995 Eomgwangro, Busanjingu, Busan, 614-714, KOREA [email protected]

Ho-Sook Kim

Division of Advanced Computer Information, Dong-Eui Institute of Technology 152 Yangji 5 ro, Busanjingu, Busan, 614-715, KOREA

[email protected]

Abstract: - The local geometric properties such as curvatures and normal vectors play important roles in analyzing the local shape of objects. The result of the geometric operations such as mesh simplification and mesh smoothing is dependent on how to compute the normal vectors and the curvatures of vertices, because there are no exact definitions of the normal vector and the discrete curvature in meshes. Therefore, the discrete curvature and normal vector estimation play the fundamental roles in the fields of computer graphics and computer vision. In this paper, we propose new methods for computing normal vector and curvature well, which are more intuitive than the previous methods. Our normal vector computation algorithm is able to compute the normal vectors more accurately and is available to meshes of arbitrary topology. It is due to the properties of local conformal mapping and the mean value coordinates. Secondly, we point out the fatal error of the previous discrete curvature estimations, and then propose a new discrete sectional-curvature estimation to be able to overcome the error. The method is based on the parabola interpolation and the geometric properties of Bezier curve. It is confirmed by experiment that the normal vector and the curvature generated by our algorithm are more accurate than that of the previous methods. Key-Words: - Normal vector, curvature, local geometric property, mesh segmentation 1 Introduction The complicated objects dealt in the field of computer graphics may be obtained by acquiring 3D position information by using 3D scanners, or generated by operating 3D modeling tools such as 3D Studio MAX or Maya. In order to efficiently deal with the objects, they may be represented by a form of mesh which includes the position information of vertices and the connectivity of them. According to the demand of users, the geometric operations such as mesh simplification and smoothing are applied to the objects[1,2,3]. In order to accomplish such geometric operations efficiently, we have to find out rightly the local properties of the mesh. In general, normal vector and curvature play the important roles as the local properties in the field of differential geometry such as curve and surface [19,20]. So the users want to use the same properties in the discrete space such as polygon and mesh as they were. However, there is not the exact formula of such properties because mesh is a discrete type. Therefore, we need a more exact measure of the local properties. Especially, the normal vector of vertices plays an important role in the rendering process which makes much account of reality.

2 Previous Works 2.1 Normal Vector There are two approaches in the computation of normal vectors [4,5]. The first approach is to approximate the surface interpolating a vertex and compute the normal vector of the surface at the vertex. The result of this approach is tightly dependent on the configuration of the 1-ring neighborhood vertices and the degree of approximated surface. The second approach is to combine the normal vectors of faces adjacent to a vertex. Gouroud proposed the first algorithm of this approach that uses the average ( GN ) of the normal vectors of adjacent faces to the vertex in a triangular mesh [6]. This method is simple so that it is fast. However, it never uses the geometric information of the neighborhood of the vertex so that we can not apply a variety of geometric operations directly. Moreover, this method may bring the different normal vectors according to the change of topology as shown in Figure 1.

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1661 Issue 10, Volume 8, October 2009

Page 2: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

Fig.1 The change of normal vector

according to the topology Thurmer et al. proposed a more improved method that is based on the angle-weight ( TN ) in order to resolve the topology-dependent problem of Gouroud’ method [7]. This method uses only the interior angle without the information such as the area of adjacent faces and the length of incident edges. It is not considered that this method prefectly reflect the geometric properties.

∑=n

iG Nfn

N1

1,

∑=

n

i

n

i

T

Nf

NfN

1

1 ,

∑=

n

ii

n

ii

M

Nff

NffN

1

1

Taubin [8] and Max [9] proposed area-weight normal vector ( MN ) algorithms in 1995 and 1999. The normal vector of a vertex by these methods is generated when we approximate a surface interpolating the vertex and represent the surface with Taylor series. The area-weight is induced when the normal vector of the surface is converted to a mesh. It is not considered that they derived a more exact normal vector because the parameter used in their Taylor’s series is not geodesic so that the error of approximation is large. In order to improve the area-weighted normal vector computation, Chen [10]

proposed a new area-weighted normal vector ( CN ) computation the weight of which is the value of the area of an adjacent face divided by the length of the line segment between the given vertex and the center of the face. The normal vertex of a vertex v is defined by

∑=

n

ii

n

ii

C

Nf

NfN

1

1

ω

ω, vg

f

i

ii −=ω

where if and ig are the area of face if and the center

of mass of if , respectively. This normal vector is affected by the non-adjacent vertices as well as the two adjacent vertices so that this method may cause inaccurate normal vectors. Figure 2 shows an example that two faces have the same local geometric property but the different weights.

Fig. 2: Two faces with the same local

geometric property and the different weights

In this paper, we propose a new normal vector computation method which considers the interior angle and the length of adjacent edges simultaneously. Our method applies conformal mapping to the 1-ring neighborhood vertices of a given vertex, and then computes the mean value coordinates of the vertex with respect to the middle points between the mapped adjacent vertices and the Origin. Finally, the normal vector of the vertex is represented by linear combination of the edge normal vectors with the mean value coordinates. The edge normal vector is the average of the normal vectors of two adjacent faces. It is well-known that the conformal mapping reflects the local geometric properties well and the mean value coordinate is continuous over the entire domain. Our experimental results show that our method can compute the more exact normal vectors than the previous algorithms. Moreover, we may resolve the problem of phong shading that the intensity at a point is dependent on how to choose a coordinate system of world

N

N

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1662 Issue 10, Volume 8, October 2009

Page 3: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

spacthe w 2.2 The imposegmof efno cmethcurvneigGoldsche1-rindepehas apprand meththat methcurvtheoof cWatprincal proper

Moscurvassu

ce because thworld space’

Curvaturestimation o

ortant role mentation, anfforts have bconsensus onhods includevature is the oghborhood odfeather propeme that takng[14]. The aendent of thamany vertic

roximated suthese estim

hods typicallcan be exte

hods compvature based ory. Taubin pcurvature of anabe propocipal curvaturoposed a drator to estim

Figure 3

st of these mvatures for eume the norm

he mean valus coordinate

re of curvaturein many ap

nisotropic rembeen devotedn the approe quadratic fone of the quof a vertexposed the us

kes into accoaccuracy of that of fitting. Ices or has aurface does nmations may ly consider sended to theute Gaussion the Gau

presented a ma surface a

osed a simplures of a discdiscrete analomate the discr

3. Several Poldiscrete c

methods comeach adjacen

mal curve inte

ue coordinates system.

es in triangulpplications smeshing or

d to this probopriate way[fitting, wher

uadratic that bx locally. se of a cubicount vertex hese curvatuIf the one-rina oscillated not resemble

yield a higsome definitie polyhedralian curvatuuss-Bonnet thmethod to estat vertices ole method ofcrete surfaceog of the Lrete curvatur

lygons with thcurvature

mpute directnt edge of

erpolate both

e is unrelate

lar meshes psuch as surfrendering. Alem, but ther12-18]. Popre the estimabest fits a cerMost recen

c approximanormals in

ure estimationng neighborhshape, then

e the local shgh error. Oion of curval setting. Th

ure and Mheory and Etimate the tenof a mesh [f estimating

e [18]. MeyeLaplace-Beltrre[13].

he same

tly the sectioa vertex. Tthe given ve

d to

lays face

A lot re is

pular ated rtain ntly, ation

the ns is hood

the hape

Other ature hese

Mean Euler nsor 17]. the

r et. rami

onal They ertex

andTaytheadjFigpolcirccurtha In discproprebasmetdershadetesti 3 In thaintrme 3.1WepoiverrepwitcomproappFlo

Equcomverinte

mUmU

d an adjacenylor series. Hy adopt the dacent neighb

gure 3 showlygons of dicumscribed brvatures estimt of the circle

this paper, crete curvatu

oblem in comevious discresed on the pthod has a g

rive a more ape better thect a fatal erimations.

Normal Vthis section,t is a generalroduce our nan value coo

1 Mean Vae have been oint inside a rtices of the present all ofth the informmbination apoblem. Speciproach is thoater [11].

Fig. 4: Co

uation (1) mbination aprtices iU i , =erior point P

P

mU

1−m P

mU

1−m

nt vertex andHowever, thedistance betwbor vertex asws their drifferent interby circles of mated by thoe. It is quite

we presenure estimatimputing theete curvatureparabola integood geometsimple form

han the previrror of the ci

Vector C we explainlization of thnormal vect

ordinates.

alue Coordoften asked apolygon as polygon uni

f informationmation of thepproach as ially, the re

he mean va

onfiguration o

shows a gepproach that

m,,1L= of P of a polygo

1U

2U

1U

2U

d the curve iey make the sween the givs the paramerawback. Thrior angles, the same rad

ose methodsalien to univ

nt symmetricon in order sectional c

e estimationserpolation. Wtric property

mula and resious methodircle-based d

omputatin the mean vhe bary-centrtor computat

dinates a question “C

a linear comiquely?”. If pn of a point e vertices. T

a general epresentativelue coordina

of mean value

eneral formis a linear cothe polygon

on as shown i

mα1−mU

mU

mα1−mU

mU

is representesame mistakeven vertex aneter of the sehere are seall of whichdius. The diss are the samversal concep

c parabola-bto solve su

curvatures bys. Our metho

We show thay so that we sembles the ds. Moreoverdiscrete curv

ion value coordiric coordinatetion base on

Can we represmbination opossible, weinside a pol

There is a cosolution of

e solution oate propose

coordinates

m of the coombination on for an arbiin Figure 3.

2α1α

mα1−

1U

U2α1α

mα1−

1U

U

ed by e that nd its eries.

everal h are screte me as pts.

based uch a y the od is

at our may local r, we

vature

nates e and n the

sent a of the

may lygon onvex f the f the d by

onvex of the itrary

2U 2U

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1663 Issue 10, Volume 8, October 2009

Page 4: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

Floasatis

Figuvaluvalu7-gofigurconcfigurthe bcoorwhetnot tthe ris vdiscoimpointer

3.2

1=∑

=

m

iP λ

ater defined tsfying the ab

∑=

= m

k

ji

ωλ

ure 5 shows ue coordinateue coordinateon, which isres are the rcave polygonres are genebarycentric crdinate systether or not a the polygon iresult generavery confusontinuous. Tortant role inrpolation.

Fig.5: MBarycenconvex polygon

Normal V

,1∑=

m

iiiiU λλ

the coefficienove equation

k

j

ω, j =

an examplee. The same e with respecs on the y-aresults for an, respectiverated by the

coordinate, reem generatespoint is insidis convex or

ated by the baed and the

The continuitn a variety of

(a)

(c)

Mean value cotric coordinpolygon (a(b,d)

Vector Com

0,1 ≥= ii λ

nts of the linn by the follo

U j

j

+− )2

tan( 1α

e of excellencolor meansct to the veraxis. The lefa convex polly. The uppe mean valueespectively. s the continude or outsideconcave. On

arycentric coe value of ty of the coeff application

(b)

(d) ordinates (up

nates (lower) ,c) and a c

mputation

.0 (1)

near combinaowing manne

P

j

+ )2

tan(α

nce of the ms the same mrtex of a regft and the rlygon and foer and the loe coordinate The mean vauous coeffic

e, and whethen the other haoordinate sys

coefficientsfficient play

n such as surf

pper) vs. for a

concave

ation er:

mean mean gular right for a ower

and alue

cient er or and, stem s is s an face

In comme

surdenby

ierelawe neiTheneimapmapsati

F

Wecoofoll

this subsecmputing the an value cooadjacent vert

rounded witnote the unit

iNf and theof faces if

ationship of apply the

ghborhood oe left figurghborhood, apping of the pped to thisfying the fo

P

Fig. 6: Confor

e define a newordinates anlowing mann

CMN

VV

U

U

U

U

ction, we innormal vect

ordinates. Wetices VV ,, 21

th faces =ift normal vece unit normal

i and 1+if bV with resp

e conformaof the vertex re is the cand the rightneighborhoo

he vertices ollowing con

ii VVPU =

rmal mapping

w normal vend a local ner:

1

1

∑=

m

ii

m

ii

Ne

Ne

λ

λ

V

mV

1−mV

mNf

V

mV

1−mV

mNf

P

2U

U1−mU

3U

1α2α

mαP

2U

U1−mU

3U

1α2α

ntroduce outor of a verte assume that

mV,,L . The

1+Δ= iiVVV , ctor of a facl vector of th

by iNe . In ect to the adj

al mapping V as show

configurationt is the resultod. The verti

P and Unditions:

,

∑=

= m

j

i

1

2πα

: (a) 3D Mesh

ector based oconformal m

,

i

i

=

k

V

1V

V

Nf1Ne

V

1V

V

Nf1Ne

1U

mU

1U

mU

ur algorithmtex based ont a vertex Ven the vertex

mi ,,1L=ce Δ= ii VVfhe common order to gejacent vertice

to the 1wn in the Figun of the 1t of the confoices V and V

i , respecti

π .

h (b) 2D polyg

on the mean vmapping by

∑=

m

kk

i

1

ω

ω,

2V

1Nf

2V

1Nf

xx

m for n the

V has x V is

. We

1+iVV edge t the

es iV , -ring

ure 6. -ring

ormal iV are

ively,

gon

value y the

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1664 Issue 10, Volume 8, October 2009

Page 5: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

PU k

kk

k −

+=

− )2

tan()2

tan( 1 αα

ω .

The normal vector ( CMN ) of our method may be regarded as that it reflects the local geometric property better than the previous methods because it is generated by applying the conformal mapping and the mean value coordinates. In general, the geometric property of a vertex in a 3D mesh has a tendency to resemble the property of the surface interpolating the 1-ring neighborhood and the vertex. The edges of the 1-ring neighborhood are approximated to the surface better than the faces because of the interpolating condition. So our method is very intuitive. 4 Curvature Computation First of all, we review the circle-based discrete curvature estimation adopted in the previous methods of estimating the discrete curvature of meshes. This method utilizes the Taylor series of a curve and adopts the distance between two vertices as parameter of the curve. It makes the trajectory of points with the same curvature be a circle. So, in this paper we call this method as C-discrete curvature. 4.1 C-Discrete Curvature Formula Most of the previous discrete curvature estimation directly compute the sectional discrete curvature whether they use the tensor of curvature or Laplacian Operator [13,14,17]. All of them compute the curvature by using the Taylor series of a curve interpolating two vertices. Let p and pi be a given vertex and its adjacent vertex, respectively and let g(s) be a continuous curve passing through the two vertices: g(0) = p, ipsg =)( . Then the curve may be represented by its Taylor series:

)(!2

)0(!1

)0()0()( 32 sOsgsggsg +′′

+′

+=

)()(2

)0()( 32 sOspNsTgsg +⋅⋅+⋅+= κ

where T and N are the unit tangent vector of the unit normal vector, respectively, and κ(p) is the sectional curvature of g(s) at point p to the direction ppi. By applying the inner product to both sides with N, we may get the following equation:

N · g s p s N · T s N · N)

Because N ⋅T = 0 and N ⋅N = 1, the above equation may be changed to the following simple equation:

κ p2 N · g s p

s The previous methods define the C-discrete curvature κC (p) by assuming that the parameter of the series is the distance between two vertices:

κC p2 N · g s p

|g s p|

Now, we point out the fatal error of the c-Discrete method. First of all, we find out the set of points with the same discrete curvature α. For the convenience of computation, we assume that p=(0,0), pi = (x, y) and N = (0, -1). Then the formula of the C-discrete curvature of p is as follows:

κC p2 N · g s p

|g s p|2y

x yα

Figure 7. The set of points with curvature α

Then, x2 + ( y + 1/α)2 = 1/α2The trajectory is the circle of center (0, -1/α) and radius 1/α as shown in Figure 7. That is, whenever the adjacent vertex pi is on the radius of the circle though it makes the different interior angle with the given vertex p, the sectional C-discrete curvature of p to the direction ppi is the same as that of the circle. In general, the interior angle of a triangle is sharper than those of square and octagon. So, we may consider that the curvature of a vertex in triangles is greater than that of other regular polygons (see Figure 3). The result of the C-discrete curvature estimation breaks the general concepts. Moreover, there is another drawback of this method that the range of the value is restricted. If ||ppi|| >1,

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1665 Issue 10, Volume 8, October 2009

Page 6: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

thenwe hshapanglFigu

Figuof thpolyBy Cvaludiffepoinsquapoininterhas awe mThercurv

4.2. In thestimformestimof povertebetw

n y/(x2+y2) <have known pe although thle because ofure 8).

Figure 8

ure 9 shows ahe C-discreteygon lie on thC-type estimaue: one is the erent circles,nts on the samare, the othents of the secrior angles ara smaller intemay guess threfore, it is

vature estima

Figur

Parabola-B

his subsectionmation basemula has a gomated by ourolygons. In gex is deter

ween the ver

< 1. Hence, that this mehe adjacent vf the upper bo

. An counter-ecurva

an example te curvature ehe union of twation, there acurvature of

, the other isme circle. Ther is shown cond type hre not same. erior angle thhat its curvat

a contrst tation.

re 9. The geom

C-discrete

Based Disc

n, we introdud on the pood geometrir method wegeneral, the lrmined by rtex and its

thod cannot vertices haveound of curv

example of C-ature

that indicateestimation. Two circles of are two typesf a point adjacs that of a pohe former is

by red dischave the sam

For examplehan the otherture is larger to the result

metric meanincurvature

crete Curva

uce a new diparabola intic property,

ell resembleslocal shape othe geometadjacent ver

. Therereflect the lo

e a sharp intevature values

-discrete

s the drawbaThe vertices

the same rad of the curvacent to pointoint adjacenshown by grc. Although

me curvature,e, the left ver vertices, so

than the otht of the C-t

ng of

ature

iscrete curvaerpolation. so the curva

s the local shof a polygon tric relationsrtices. We h

fore, ocal erior (see

acks of a

dius. ature ts on nt to reen the

the ertex

that hers. type

ature The

ature hape at a ship have

knocurcurshato con WecurA, Ba qu

wh

are theintetwo= AwhThicon

Thegooparyiestanreladisc Firsof par

The

The κP(

own that therve and it is arves. Therefoape, followin

use the qunsecutive ver

e adopt a qurve because B, C be three uadratic Bez

P(t) =

ere Pi are the

the Bernstere are severerpolates theo end verticeA, P(1) = C, en the curve is problem insider the fol

Standa

Length

e standard pod geometrrameterizatiolds more comndard paramationship becrete curvatu

st of all, we cthe quadrati

rameterizatio

P0 = A,

erefore, the i

P(t) = A B

e curvature o

0.5) = || P”

e concept of a quantity to ore, the best ng the originauadratic currtices.

uadratic Bezit has a goconsecutive

zier curve is a

= P0 B02(t) + P

e control poin

B t ni

ein polynomal methods t given vertic

es are alreadyso the methopasses throu

is a parametllowing two m

ard : P(1/2) =

h-based : P(

parameterizaric relationson well resemplex formueterization sotween the c

ure of a polyg

compute the ic Bezier cu

on condition:

P 4B

interpolating

B02(t) + (4B-A

of P(t) at t=0

(0.5 ) × P’( 0

f curvature imeasure themethod to real definition rve interpol

ier curve asood geometrvertices. Th

as follows:

P1 B12(t) + P

nts of the Be

1 t

mials of degrto find the B

ces. That is, ty determinedod is determiugh the intermterization ofmethods:

= B

|| AB || / (||A

ation is simps, where tembles the

ula. In this pao that we ma

curvature of gon.

three controurve, satisfy

A C /2

g Bezier curv

A-C)/2 B12(t)

.5 is

0.5 ) || / ||P’(0

s derived froe local bendinesemble the of a curvatu

lating the

s an interpolric property

he general for

2 B22(t),

ezier curve an

t

ree n. In genBezier curvethe conditiond as follows:ined accordinmediate vertef curves. We

AB||+||BC|| )

ple to derivethe length-blocal shape

aper, we adopay find out a

a curve and

ol points P0, Pying the stan

, P2 = C.

e is as follow

) + C B22(t).

0.5)||3

om a ng of local

ure is three

lating . Let rm of

nd

neral, e that ns for P(0) ng to ex B. e can

) = B

e the based e but pt the good d the

P1, P2 ndard

ws:

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1666 Issue 10, Volume 8, October 2009

Page 7: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

Hencurv

FirstP-diA-2B

wherThe paraof thP-diand resp

In orwe rcom/n), rn-govalu

Therthe ibeco

= |

ce, we can vature of the

κP p

t of all, we fscrete curvaB+C. The P-

κP p

re θ is the innumerator o

allelogram BDhe triangle BCscrete curvatv are the heectively.

Figur

rder to verifyregularly sam

mpute their P-r sin ((2 π i)

on on the circues of v and h

v = r sinh = r(1 -

refore, as theinfinity, the vomes that of

lim κ p

| 4(A-2B+C)

define a negiven vertex

4 A 2B|

find out the ature formula-discrete curv

p4G 2||2V|

n-between anof the aboveDEF and is foCF as shownture formula eight and the

re 10. The geoP-curvatur

y the proprietmple n point-discrete curv

/n) ), i = 0, cle. By trigonh as follows: n ((2 π i) /n), - cos ((2 π i)

e number of value of curvthe circle.

lim2 r

) × (C-A) || /

ew Parabolax B as follow

B C C|C A||

geometric pa. Let V=(Cvature formu

2V|

G sV

ngle of the ve equation isour times as mn in Figure 10is κP (B) = (2

e width of th

ometric meaninre formula

ty of the P-dits on a circlevature. Let p… , n-1, be

nometry, we /n ) ).

sampling povature at a ver

r 1 – cos 2πn

r sin 2πn

||C-A||3.

a-based discws:

A

properties ofC-A)/2 and Gula is

sin θ

vectors G ands the area ofmuch as the a0. Therefore,2h) / v2, wherhe triangle B

ng of

iscrete curvae of radius ri= ( r cos ((2 the vertices can compute

oints increasertex of the n-

πn i

i

1r

crete

f the G =

d V. f the area , the re, h

BCF,

ature, and π i) of a

e the

es to -gon

Tabthe nCurrad FigcircThicurwisbecon vieagaon recshacurrectverdecshaesti 4.3

Theestithe polsamcurhas

Figu

ble 1. The P-dsampled poin

rvature dius

gure 11 and cle of radiusis result is arvature estimshes that thecome that of the circle. Tw that the v

ainst the concthe local s

ognizes the varper angle, nrvature of vtangle is 2.0

rtices increascreases to 1. Tape of verticimation.

3. Symmetr

Fig

ere is an imation is n

local shapelygons each ome height orvature. Hows the largest c

ure 11. Polygop-curvat

iscrete curvatunts on the circl

3 4 4.00 2.0.25 0.

Table 1 shos 1 and theiran excellent mation (Figure curvature of a circle becThe method pvertices are ocept of curvashape. On tvertices of ponot to be on avertices of a0 (see Figurses to the infTherefore, ouces more th

ric P- Discr

gure 12. Polygp-curvat

example thaot yet the pee of polygonof which hasof h. So, th

wever, we cancurvature am

ns with the diture values

ure and its radle of radius 1

5 00 1.53 50 0.65

ow the severr P-discrete contrast to tre 3). The Cof the sampause the vertputs emphasion a circle. Hatures. It losethe other haolygons on tha circle. Thata triangle isre 11). Morfinity, less thur method re

han the C-d

rete Curvat

gons with the ture values

at the P-dierfect solutions. Figure 1s the same wihey have thn expect that mong them b

ifferent

dius of curvatu

6 101.33 1.00.75 1.0

al polygons curvature vathat of C-disC-type estimled vertices tices are samis on the poiHowever, it es the informand, our mehe circle to ht is, the P-diss 4 and tha

re the numbe curvature v

esembles the discrete curv

ture

same

iscrete curvon of resemb12 contains idth of 2v an

he same disthe third polecause the v

ure of

00 00 00

on a alues. screte

mation may

mpled int of goes

mation ethod ave a

screte at of er of value local

vature

vature bling three

nd the screte lygon vertex

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1667 Issue 10, Volume 8, October 2009

Page 8: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

of the last polygon has a sharper angle than the others. In order to solve this imperfection, we propose the symmetric parabola-based discrete curvature estimation using a symmetric parabola. 4.1 SP-Discrete Curvature Formula Let N be the unit vector bisecting the interior angle of B: N = ( BA/||BA|| + BC/||BC|| ) / || BA/||BA|| + BC/||BC|| ||. Then, we can consider two right-angled triangles AA'B and CC'B as shown in Figure 13. One has the width of length vA and the height of hA , the other has the width of length vC and the height of hC:

Figure 13. Polygon and its Parabola

hA = N ⋅ BA, vA = || BA - (N ⋅BA) N ||, hC = N ⋅ BC, vC = || BC - (N ⋅BC) N ||. Then, we can consider the right-angled triangle MM'B with the width vm = (vA+ vC)/2 and the height hm = (hA + hC)/2. Therefore, we define the symmetric P-type discrete curvature of the vertex B as κSP(B)≡ (2 hm)/vm

2.

5 Experimental Results 5.1 Normal Vector Figure 14 shows a variety of polyhedrons which are approximations of a unit sphere. The upper polyhedrons are generated by recursively subdividing a regular tetrahedron, and the lower ones are generated by using the parameters of longitude and latitude. The upper cases are more irregular than the lower cases because the triangles of a different size may be appear, so that the error of the normal vector of a vertex in recursively generated polyhedrons may be larger than the others. Table 2 and 3 show the mean error of normal vectors of a vertex in the approximated polyhedral of the unit sphere. In order to measure the exactness of the normal vectors, we used the following error energy

><−= NNvvE ii ,1)( ,

where iNv is the unit normal vector of a vertex iV of the approximated sphere and N is the normal vector of the unit sphere.

Fig. 14: Approximated Spehres

Table 2. Mean error for mesh generated by recursive method No. Of vertices

10 34 130 514 2050

]2[GN 0.00E-08 7.25E-03 1.48E-03 3.41E-04 7.00E-05

]3[TN 0.00E-08 3.57E-03 6.98E-04 1.35E-04 2.50E-05]4[MN 0.00E-08 1.42E-02 2.89E-03 6.47E-04 1.31E-04]6[CN 0.00E-08 7.42E-04 3.57E-04 9.30E-05 2.00E-05

CMN 0.00E-08 5.22E-04 1.41E-04 3.10E-05 6.00E-06

Table 3. Mean error for mesh generated by parametric method

No. of Vertices

23 50 122 262 578

]2[GN 4.03E-03 7.86E-04 2.22E-04 5.20E-05 2.40E-05

]3[TN 1.41E-03 5.54E-04 1.11E-04 6.00E-05 6.00E-06]4[MN 8.87E-03 1.96E-03 5.88E-04 6.30E-04 6.30E-05

]6[CN 1.77E-03 1.11E-03 1.11E-04 5.00E-05 5.00E-06

CMN 7.89E-04 4.63E-04 5.70E-05 1.60E-05 2.00E-06

According to the result of experiment, the normal vector computation proposed by Chen [10] is better than the other previous methods. However, the exactness of our method is two times than that of Chen. So we argue that our method is the best of all. Figure 15 shows the results of rendering generated by Phong shading which are based on the GN method, CN method, and CMN method. The positions of camera and light are the same so that the highlighted region should symmetrically appear near the vertex positioned in the center of the rendering. Figure 14(a) is the wire-frame of a cube. It has irregular topology. The vertex positioned in

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1668 Issue 10, Volume 8, October 2009

Page 9: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

the cwherrectashouthe rFigurealihighthe o

5.2 CWe curvusintwo betwwherMMthe discrconvunit its a( t, f(unit Henthe Therthe v

In orthe func

center is adjare it is adjacangles, respeuld be shiftedresults of GNure 15 (d) gistic renderhlighted area others.

(a) Wire

(c) CN m

F

Comparisoncompared t

vature with g the Taylorpoints. The

ween two preas the SP-

M' between theanalytic formrete curvatuvenience of vector is N =djacent verte

f(t)) interpolanormal vec

ce, the first avertex p arerefore, we cavertex p as fo

κ

rder to compTaylor serie

ction, the for

acent to 4 triacent to a trianectively. Thed up and dowG method angenerated byring than of our meth

e-frame

method

Fig. 15 results

n of SP-DC athe symmetthe circle-b

r series of cue C-curvaturoints as thecurvature adem (see Figumula of the

ure by usingderiving, we

=(0, -1), a givex is pi (vm, 0ating two verttor at p is thand second de $g’(0) = an compute tollows:

g 0 gg 0

pute the secoes of f(t). Brm is as follo

angles on the ngle on the lerefore, the hwn. Figure 15nd CN methoy our methothe other

hod looks mo

(b) GN meth

(d) CMN meth

s of rendering

and C-DC ric parabola

based discreturves interpore adopts the parameterdopts the horure 13). First e symmetric the Taylor e assume thven vertex is0). Then, thetices is symmhe same as

derivatives o(1, 0), g” (0

the curvature

0f

ond derivativBecause f(t)ows: f(t) = f(

upper rectaneft and the rhighlighted a5 (b) and (c)od, respectivod shows mmethods.

ore realistic t

od

hod

a-based discte curvatureolating the gihe distance r of the curizontal distaof all, we deparabora-baseries. For

hat the bisecs p = (0, hm), e parabola g(metric so thatN and f ’(0)f the parabol0) = (0, f “(e of the curv

0

ve of f(t), we is a quadr(0) + f ′ (0) t

ngle, right area ) are vely. more The than

crete e by iven BM

urve, ance erive ased

the cting

and (t) = t the )=0. la at (0)). ve at

use ratic t + f

′′(0)the sam Tab

Thecurof cserithe ma 6 Thean simnewcurnorto tmevergengeopremapexpnorothtriatopreathe of t By veccurcomoneand

)/2 t2, f ′′(0) =symmetric

me as the cur

ble 4 The com

Formula

Parameter

Range

TrajectoryMagnitude

e differencesrvature are shcurvatures, ties, the trajecrange of curgnitudes.

Conclusie analysis onimportant ro

mplification, w computatirvature at a vrmal vector cthe 1-ring nean value coo

rtices of thenerated by oometric propeserve the cpped domain

perimental rrmal vectors hers. Moreovangular meshpology, and listic renderimain algorit

this research

exploiting ctors, we arrvature of vmpute direce-ring neighbd the mean c

= (2 (f(t) - f(0)parabora-bas

rvature of the

mparison of SPC-DiscreCurvaturκC(B) = N⋅BA)/

Distance

κC(B) ≤ ||AB|| ≥ circle

s of C-discrehown in Tabhe parametectory of poinrvature value

ion n the local prole in the apsmoothing. on algorithmertex of meshcomputation eighborhood ordinates of te neighborhoour method

perty due to continuity on. Therefore,results that of vertices oer, this meth

hes but also has the adv

ing. As a fututhms of Phon.

the more exre able to ertices. The

ctly the secbor, and thencurvature us

))) / t2 = (2 hmsed discrete e curve g(t): κ

P-curvature wiete re

SC

(2 || AB||2

κ/|⋅B

e HD

2 if 1

κ

paκC(B) ≤ κ

ete curvatureble 4. It inclurs of the curts with the co

es, and the co

roperties of pplications su

In this papms of the nohes of arbitra applies conof a vertex athe vertex wood. So, th

may well the conform

of the coeff, it could be

our methof a mesh mor

hod may be apthe meshes

vantage of gture researchng shading b

xact computcompute th common p

ctional curvn derive the gsing the sect

m)/vm2. There

curvature iκg(0) = κSP(p

ith C-curvaturP-Discrete

Curvature SP(B) = (2 N⋅B| BA - (N BA)N||2

Horizontal Distance

SP(B) < ∞

arabola κSP(B)

e and SP-disudes the formrves in the Tonstant curvaomparison of

3D meshes puch as morpper, we propormal vectorary topology

nformal mappand compute

with respect the normal v

reflect the mal mappingficients overconfirmed byd computesre accuratelypplied to notwith an arbigetting the , we will devased on the r

tation of nohe right disprevious metvatures for aussian curvtional curvat

efore, is the p).

re

BA)

screte mulae aylor ature, f their

plays hing,

posed r and

y. Our pings es the to the vector

local , and r the y our s the y than t only itrary more velop result

ormal screte thods each

vature tures.

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1669 Issue 10, Volume 8, October 2009

Page 10: New Computation of Normal Vector and Curvature - WSEAS · New Computation of Normal Vector and Curvature Hyoung-Seok Kim Department of Multimedia Engineering, Dong-Eui University

All of them use the circle-based discrete curvature to compute the sectional curvature. In this paper, we point out the fatal error of C-type discrete curvature computation, and proposed the parabola-based discrete curvature computation to resolve the problem. Our method may be the basis of normal vector estimation and segmentation of meshes. References: [1] Dennis Maier, Jürgen Hesser, Reinhard Männer, Fast

and Accurate Closest Point Search on Triangulated Surfaces and its Application to Head Motion Estimation, Wseas Transactions on Computers, Issue 4, Vol. 2, pp 874-878, 2003

[2] Jifang Li and Renfang Wang, Robust Denoising of Point-Sampled Surfaces Wseas Transactions on Computers, Issue 1, Vol. 8, pp 153-162, 2009

[3] Ravi S. Gautam and Sachin B. Patkar, Fitting convex surface to scattered data points with applications to medical imaging, Wseas Transactions on Computers, Issue 1, Vol. 3, pp 50-56, 2004

[4] Hyoungseok Kim and Hosook Kim, Computing Vertex Normals from Aribitrary Meshes, Proceeding of the 9th WSEAS Int. Conference on Signal Processing, Computational Geometry & Artificial Vision(ISCGAV’09), pp 68-72, 2009

[5] Shuangshuang Jin, Robert R. Lewis, and David West, A Comparison of Algorithms for Vertex Normal Computation, The Visual Computer, Vol. 21, No. 1-2, pp 71-82, 2005

[6] Henri Gouraud, Continuous Shading of Curved Surfaces, IEEE Transactions of Computers, Vol. 20, No. 6, pp 623-629, 1971

[7] Grit Thurmer and Charles A. Wuthrich, Computing vertex normals from polygonal facets, Journal of Graphics Tools, 3(1), pp 43-46, 1998

[8].G. Taubin, Estimating the tensor of curvature of a surface from a polyhedral approximation, Proceeding of the Fifth International Conference on Computer Vision, pp 902-907, 1995

[9] N Max, Weights for computing vertex normals from facet normals, Journal of Graphics Tools, 4(2), pp 1-6, 1999

[10] Sheng-Gwo Chen and Jyh-Yang Wu, Estimating normal vectors and curvatures by centroid weights, Computer Aided Geometric Design 21(5), p 447-458, 2004

[11] Michael S. Floater, Mean value coordinates, Comp. Aided Geom. Design Vol. 20, p 19-27, 2003.

[12] Sylvain Petitjean, A Survey of Methods for Recovering Quadrics in Triangle Meshes, ACM Computing Surveys, Vol. 34, No. 2, pp 211—262 (2002).

[13] Mark Meyer, Mathieu Desbrun, Peter Schroder, and Alan H. Barr, Discrete Differential Geometry Operators for Triangulated 2-Manifolds, Proc of VisMath, (2002)

[14] J. Goldfeather and V. Interrante, A novel cubic-order algorithm for approximating principal direction vectors, ACM Transaction on Graphics, Vol . 23, No. 1, pp 45—63 (2004)

[15] Holger Theisel, Christian Rossl, Rhaleb Zayer, and Hans-Peter Seidel, Normal Based Estimation of the Curvature Tensor for Triangular Meshes, Proc. of Pacific Graphics'04, pp 288—297 (2004)

[16] Tatiana Surazhsky, Evgeny Magid, Octavian Soldea, Gershon Elber, and Ehud Rivlin, A Comparison of Gaussian and Mean Curvatures Estimation Methods on Triangular Meshes, Proc. of 2003 IEEE International Conference on Robotics and Automation, (2003)

[17] Gabriel Taubin, Estimating the Tensor of Curvature of a Surface from Polyhedral Approximation, Proc. of the Fifth International Conference on Computer Vision, (1995)

[18] Kouki Watanabe and Alexander G. Belyaev, Detection of Salient Curvatures Features on Polygonal Surfaces, Computer Graphics Forum, Vol. 20, No. 3, (2001)

[19] David Cohen-Steiner and Jean-Marie Morvan, Restricted Delaunay Triangulations and Normal Cycle, ACM Symposium of Computational Geometry, (2003)

[20] M. Garland and P. S. Heckbert, Surface simplification using quadratic error metrics, SIGGRAPH ‘97, pp 209—216 (1997)

WSEAS TRANSACTIONS on COMPUTERS Hyoung-Seok Kim, Ho-Sook Kim

ISSN: 1109-2750 1670 Issue 10, Volume 8, October 2009