Lec 1 - Data structures

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Independent Face List

Each face stores its vertices explicitly.

struct Vertex {float x, y, z;};
struct Face {Vertex v1, v2,v3;};
struct Mesh {Face faces[F];};

2
New cards

Indeced Face List

Vertex array stores unique vertex coordinates only. Faces contain pointers to vertices rather than copying coordinates explicitly.

struct Vertex {float x, y, z;};
struct Face {Vretex* v1, v2, v3;};
struct Mesh { 
Vertex verts[V]; 
Face faces[F];
};

3
New cards

Half-edge Mesh

To efficiently store and access vertices, faces, edges and neighbors.

struct HalfEdgeMesh {
Vertex* vert; 
Halfedge* next; 
Halfedge* prev; 
Halfedge* pair; 
Face* face; 
};
struct Vertex {
float x, y, z;
Halfedge* edge; 
}; 
struct Face {
Halfedge* edge;
}; 
struct Mesh {
Vertex verts[V]; 
Face faces[F]; 
Halfedge edges[3F];
}; 

4
New cards

What’s an advantage with Indexed Face lists?

Memory-efficient

5
New cards

What’s a disadvantage with Independent Face lists?

Redundant storage

6
New cards

Equation for face normal assuming CCO

ni = Ni / ||Ni||, Ni = (Vi,2 - V1) x (Vi,3 - V1)

7
New cards

Equation to normalize Normal

nu(V1) = n(Vi) / ||n(Vi)||

8
New cards

Equation for triangle area

½ ||Ni||

9
New cards

Equation for vertex normal

n(V1) = sum(ni)

10
New cards

Equation for area weighted vertex normal

n(V1) = sum(Ai*ni)