Top Banner
Mesh data structure & file format GI127 陳陳陳
17

Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Dec 13, 2015

Download

Documents

Dorthy Lloyd
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: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Mesh data structure & file format

GI127 陳勁宇

Page 2: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Content

Object File Format(OFF)Polygon File Format(PLY)The Winged-Edge Data StructureThe Half-Edge Data Structure

Page 3: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Object File Format(OFF)

Storing a description a 2D or 3D objectSimple extension can handle 4D objects 4D: (x,y,z,w)

OFF File Characteristics ASCII (there is also a binary version) Color optional 3D No compression

Page 4: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Object File Format(OFF)

Page 5: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Object File Format(OFF)

Page 6: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Polygon File Format

Stanford Triangle FormatStore 3-d data from 3D scannersProperties can be stored including color and transparency surface normals texture coordinates data confidence values

Page 7: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Stanford 3D Scanning Repository (url)

Cyberware 3D Scanners (url)

Large models also avaiable at GeogiaTech

Page 8: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Polygon File Format

PLY structure Header Vertex List Face List (lists of other elements)

Page 9: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Polygon File Format

Page 10: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

Commonly used to describe polygon modelsQuick traversal between faces, edges, verticesLinked structure of the network

Assume there is no holes in each face

Page 11: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

vertices of this edgeits left and right facesthe predecessor and successor when traversing its left facethe predecessor and successor when traversing its right face.

Page 12: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

Edge Vertices Faces Left Traverse Right Traverse

Name Start End Left Right Pred Succ Pred Succ

a X Y 1 2 d b c e

Edge Table

Page 13: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

Edge Vertices Faces Left Traverse Right

Traverse

Name Start End Left Right Pred Succ Pred Succ

a A D 3 1 f e c b

b A B 1 4 a c d f

c B D 1 2 b a e d

d B C 2 4 c e f b

e C D 2 3 d c a f

f A C 4 3 b d e a

Page 14: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

Vertex Name Incident Edge

A a

B b

C d

D c

the vertex table and the face tablemultiple choices of edges

Face Name Incident Edge

1 a

2 c

3 a

4 b

Page 15: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Winged-Edge Data Structure

For a face with inner loops are ordered clockwise.

Adding an auxiliary edge between each inner loop and the outer loop

Page 16: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

The Half-Edge Data Structure

Doubly connected edge list

Page 17: Mesh data structure & file format GI127 陳勁宇. Content Object File Format(OFF) Polygon File Format(PLY) The Winged-Edge Data Structure The Half-Edge Data.

Euler-Poincare Formula (url)

V: the number of vertices E: the number of edges F: the number of faces G: the number of holes that penetrate the solid, usually referred to as genus in topology S: the number of shells. A shell is an internal void of a solid. A shell is bounded by a 2-manifold surface, which can have its own genus value. Note that the solid itself is counted as a shell. Therefore, the value for S is at least 1.L: the number of loops, all outer and inner loops of faces are counted.

Then, the Euler-Poincaré formula is the following:

V - E + F - (L - F) - 2(S - G) = 0