• Non ci sono risultati.

Parametrization & Remeshing

N/A
N/A
Protected

Academic year: 2021

Condividi "Parametrization & Remeshing"

Copied!
41
0
0

Testo completo

(1)

Parametrization & Remeshing

Nico Pietroni (nico.pietroni@isti.cnr.it) ISTI – CNR

(2)

What is a parametrization?

Christian Rössl, INRIA 238

Surface Parameterization

[www.wikipedia.de]

(3)

What is a parametrization?

(4)

Why Parametrization?

¤  Texture Mapping

+ =

2D texture image textured bunny 3D mesh

disk-like patches

texture charts

u v

(5)

Why Parametrization?

¤  Manual UV mapping

¤  An advanced artistic skill

(6)

Why Parametrization?

¤  Remeshing

f

f

-1

(7)

Why Parametrization?

¤  Remeshing

QUADRILATERAL

Bommes, et AL.: Mixed Integer Quadrangulation

TRIANGULAR

Pietorni, et AL. :Almost isometric mesh parameterization through abstract domains

HEXAGONAL

Nieser et al.: Hexagonal Global Parameterization of Arbitrary Surfaces

HEXAHEDRAL

Nieser, et AL. : CUBECOVER – Parameterization of 3D Volumes

(8)

Why Parametrization?

¤  Analysys…. 2D is easier than 3D

Pietroni, et AL.: An Interactive Local Flattening Operator to Support Digital Investigations on Artwork Surfaces

(9)

Parametrization: what we need?

¤  A strategy to flatten a 3D surface on 2D domain

¤  Introducing as few distortion as possible

¤  A strategy to introcuce cuts

3D

2D 3D

2D

(10)

Flattening a surface

¤  surface

¤  parameter domain

¤  mapping and

(11)

Parametrization:Cylindrical coords

(12)

Parametrization: Ortho Projection

(13)

Minimize Distortion

¤  Angle preservation: conformal

¤  Area preservation: equiareal

¤  Area and Angle: Isometric

Christian Rössl, INRIA 248

• By first fundamental form I

– Eigenvalues λ

1,2

of I

– Singular values σ

1,2

of J (σ

i2

= λ

i

)

• Isometric

– I = Id, λ

1

= λ

2

=1

• Conformal

– I = µ Id , λ

1

/ λ

2

=1

• Equiareal

– det I = 1, λ

1

λ

2

=1

Characterization of Mappings

angle preserving

area preserving

Christian Rössl, INRIA 248

• By first fundamental form I

– Eigenvalues λ

1,2

of I

– Singular values σ

1,2

of J (σ

i2

= λ

i

)

• Isometric

– I = Id, λ

1

= λ

2

=1

• Conformal

– I = µ Id , λ

1

/ λ

2

=1

• Equiareal

– det I = 1, λ

1

λ

2

=1

Characterization of Mappings

angle preserving

area preserving

Christian Rössl, INRIA 248

• By first fundamental form I

– Eigenvalues λ

1,2

of I

– Singular values σ

1,2

of J (σ

i2

= λ

i

)

• Isometric

– I = Id, λ

1

= λ

2

=1

• Conformal

– I = µ Id , λ

1

/ λ

2

=1

• Equiareal

– det I = 1, λ

1

λ

2

=1

Characterization of Mappings

angle preserving

area preserving

(14)

¤  σ1 and σ2 describe local deformations

Distortion

Ω f S

σ1 σ2

1

1 p f(p)

2 3

(15)

Isometric Mapping

¤  σ1=σ2=1

¤  preserves areas, angles and lengths

Ω f S

1 1 1

1

2 3

(16)

Conformal Mapping

¤  σ1/σ2=1

¤  preserves angles

Ω f S

1 1

σ1 σ1

2 3

(17)

Equiareal Mapping

¤  σ1σ2=1

¤  preserves areas

Ω f S

1

1 1/σ1 σ1

2 3

(18)

Bijectivity

¤  Parametrization map must be bijective triangles in parametric domain do not overlap (no triangle flips)

(19)

Cuts 1

sphere in 3D 2D surface disk

¤  Clearly needed for closed surfaces

(20)

Cuts 2

¤  Usually more cuts -> less distortion

sphere in 3D 2D surface

(21)

Cuts 3: closed surfaces

¤  How many cuts?

for a genus 0 surface ? any tree of cuts

(22)

Cuts 3: closed surfaces

¤  How many cuts?

for a genus 1 surface ? two looped cuts

(23)

Cuts 3: closed surfaces

¤  How many cuts?

for a genus 3 surface ? 6 looped cuts

(24)

Cuts 3: closed surfaces

¤  How many cuts?

for a genus n surface ? 2n looped cuts genus 6

(25)

Generic Cut Strategies

¤  Texture Mapping

Christian Rössl, INRIA 241

Motivation

•Texture mapping

Lévy, Petitjean, Ray, and Maillot: Least squares conformal maps for automatic texture atlas generation, SIGGRAPH 2002

Lévy, et AL.: Least squares conformal maps for automatic texture atlas generation

Pietroni, et AL.: Almost isometric mesh parameterization through abstract domains

UNSTRUCTURED CUTS

REGULAR CUTS PER QUAD

Brent Burley et al : Ptex: Per-Face Texture Mapping for Production Rendering

IMPLICIT

Tarini, et AL.: PolyCube Maps

(26)

What is a good Cut?

¤  Simplicity of parametric domain

Pietroni, et AL.: Global Parametrization of Range Image Sets

Tarini, et AL.: Simple Quad Domains for Field Aligned Mesh Parametrization

Gu, et AL.: Goemetry Images

1:1

side-to-side transitions

Irregular borders

overlaps

Implicit transitions

Versatility Simplicity

(27)

Globally Smoothess

¤  Tangent directions varyes smoothly across seams

(28)

Globally Smoothess

¤  Tangent directions varyes smoothly across seams

(29)

Feature Alignment

¤  Useful for quadrangulation

¤  Need good placement of singularities

(30)

Details: Parametrization

¤  triangle mesh

¤  vertices

¤  Triangles

¤  parameter mesh

¤  parameter points

¤  parameter triangles

¤  parameterization

¤  piecewise linear map

(31)

Parametrization (VCG)

¤  triangle mesh

¤  vertices

¤  Triangles

¤  parameter mesh

¤  Per vertex UV

¤  Per Wedge UV

MyTrimesh m;

MyTrimesh::VertexType *v=&m.vert[0];

MyTrimesh::CoordType pos=v->P();

MyTrimesh m;

MyTrimesh::FaceType *f=&m.face[0];

MyTrimesh::VertexType *v=f->V(0);

class MyTriFace;

class MyTriVertex;

struct TriUsedTypes: public vcg::UsedTypes<. . .>;

class MyTriVertex:public vcg::Vertex<TriUsedTypes,…vcg::vertex::TexCoord2d>{};

class MyTriFace:public vcg::Face<TriUsedTypes,…vcg::face::WedgeTexCoord2d>{};

class MyTriMesh: public vcg::tri::TriMesh< std::vector<MyTriVertex>,std::vector<MyTriFace > >

MyTrimesh m;

MyTrimesh::FaceType *f=&m.face[0];

vcg::Point2d uv=f->T(0).P();

MyTrimesh m;

MyTrimesh::VertexType *v=&m.vert[0];

vcg::Point2d uv=v->T().P();

(32)

Parametrization (VCG)

¤  Per Wedge = per triangle per vertex

¤  Why ?

¤  Needed to handle seams

(33)

Parametrization: Stereo Projection

(34)

Parametrization: Mass-Spring

¤  replace edges by springs

¤  Position of vertices p0..pn

¤  UV Position of vertices u0..un

¤  relaxation process

(35)

Energy Minimization

¤  energy of spring between pi and pj :

¤  spring constant (stiffness)

¤  spring length (in parametric space)

¤  total energy

¤  partial derivative

(36)

Linear System

¤  ui is expressed as a convex combination of its neighbours uj

¤  With weights

¤  LEAD to Linear System!

(37)

Which Weights?

¤  uniform spring constants

¤  Proportional to 3D distance

(38)

Which Weights?

¤  NO linear reproduction

¤  Planar mesh are distorted

(39)

Which Weights?

¤  suppose S to be is planar

¤  specify weights such that

¤  Then solving

¤  Reproduces S

(40)

Which Weights?

¤  Wachspress coordinates

¤  discrete harmonic coordinates

¤  mean value coordinates normalization

(41)

Parametrization & Remeshing

Nico Pietroni (nico.pietroni@isti.cnr.it) ISTI – CNR

Riferimenti

Documenti correlati

The overall objective of the present study has been to delineate protection zones for the main discharge area of the Gran Sasso aquifer ( Figure 1 ). This wide fractured-karst

We tested differences in nautical traffic, measured as the number of moored boats, boat passages and their sum as total boat events, with an analysis of variance (ANOVA, [70])

Cognitive deficits are frequently observed in brain tumour patients, however, IADL is almost never assessed because no valid and reliable IADL measure is available for this

In this study, the structure and composition of the bacterial and archaeal communities were assessed in surface sediments from the three ports by targeted metagenomic analysis of

Alps. Generai linear models, multiple regression, and generalised additive models were used for data analyses.l species richness in relation to environmental variables showed

Trébol è stato incluso come poesia di chiusura nella Antología poética en honor de Góngora: desde Lope de Vega a Rubén Darío preparata da Gerardo Diego nel 1927,

Relationship between the flux density and line width of the water maser feature at +6 km s −1 associated with W49N during the 2017–2018 flare..

La domanda che viene spontaneo porsi, atteso che i costi di costruzione di un thesaurus sono notevoli e non sottovalutabili, così come lo sforzo organizzativo correlato, è dunque: