SER332
Introduction to Graphics and
Game Development
Lecture 14:
Mesh Data Structure
Javier Gonzalez-Sanchez
javiergs@asu.edu
PERALTA 230U
Office Hours: By appointment
Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 2
Midterm
0.00
10.00
20.00
30.00
40.00
50.00
60.00
70.00
80.00
90.00
100.00
1 2 3 4 5 6 7 8 9 10 11
algebra
circle
OBJfile
lookAt
viewports
displaylists
Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 3
Project 3
1 0 2 0 1 0 0 1
Mesh Data Structure
Programming
Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 5
Definition
Mesh
represent (a geometric object) as a set of finite
elements (triangles) for computational modeling.
Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 6
Mesh Data Structure
typedef Vec3<float> Vec3f;
typedef Vec2<float> Vec2f;
struct Mesh {
vector<Vec3f> vertice_xyz; // array of vertices
vector<Vec3f> normal_xyz; // array of normals
// array of texture coordinates; assume using 2d textures
vector<Vec2f> texture_xy;
vector<int> vertex_index; // vertex indices
vector<int> normal_index; // normal indices
vector<int> texture_index; // texcoord indices
};
Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 7
Homework
• Vector Library (Ilmbase)
• C++ Standard Template Library
SER332 Introduction to Graphics
Javier Gonzalez-Sanchez
javiergs@asu.edu
Spring 2017
Disclaimer. These slides can only be used as study material for the class SER332 at ASU. They cannot be distributed or used for another purpose.

More Related Content

PDF
201707 SER332 Lecture 15
PDF
201707 SER332 Lecture 24
PDF
201707 SER332 Lecture 26
PDF
201707 SER332 Lecture18
PDF
201707 SER332 Lecture 16
PDF
F4D Specification Document V1
PDF
Markus Tessmann, InnoGames
PDF
GL Shading Language Document by OpenGL.pdf
201707 SER332 Lecture 15
201707 SER332 Lecture 24
201707 SER332 Lecture 26
201707 SER332 Lecture18
201707 SER332 Lecture 16
F4D Specification Document V1
Markus Tessmann, InnoGames
GL Shading Language Document by OpenGL.pdf

Similar to 201707 SER332 Lecture 14 (9)

PPT
1422798749.2779lecture 5
PDF
201707 SER332 Lecture 21
PDF
201707 SER332 Lecture 12
PPTX
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
PDF
201707 SER332 Lecture 06
PPTX
Introduction of 3D Development
PDF
201707 SER332 Lecture 17
PDF
201707 SER332 Lecture 05
DOC
Data structures graphics library in computer graphics.
1422798749.2779lecture 5
201707 SER332 Lecture 21
201707 SER332 Lecture 12
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
201707 SER332 Lecture 06
Introduction of 3D Development
201707 SER332 Lecture 17
201707 SER332 Lecture 05
Data structures graphics library in computer graphics.
Ad

More from Javier Gonzalez-Sanchez (20)

PDF
201804 SER332 Lecture 01
PDF
201801 SER332 Lecture 03
PDF
201801 SER332 Lecture 04
PDF
201801 SER332 Lecture 02
PDF
201801 CSE240 Lecture 26
PDF
201801 CSE240 Lecture 25
PDF
201801 CSE240 Lecture 24
PDF
201801 CSE240 Lecture 23
PDF
201801 CSE240 Lecture 22
PDF
201801 CSE240 Lecture 21
PDF
201801 CSE240 Lecture 20
PDF
201801 CSE240 Lecture 19
PDF
201801 CSE240 Lecture 18
PDF
201801 CSE240 Lecture 17
PDF
201801 CSE240 Lecture 16
PDF
201801 CSE240 Lecture 15
PDF
201801 CSE240 Lecture 14
PDF
201801 CSE240 Lecture 13
PDF
201801 CSE240 Lecture 12
PDF
201801 CSE240 Lecture 11
201804 SER332 Lecture 01
201801 SER332 Lecture 03
201801 SER332 Lecture 04
201801 SER332 Lecture 02
201801 CSE240 Lecture 26
201801 CSE240 Lecture 25
201801 CSE240 Lecture 24
201801 CSE240 Lecture 23
201801 CSE240 Lecture 22
201801 CSE240 Lecture 21
201801 CSE240 Lecture 20
201801 CSE240 Lecture 19
201801 CSE240 Lecture 18
201801 CSE240 Lecture 17
201801 CSE240 Lecture 16
201801 CSE240 Lecture 15
201801 CSE240 Lecture 14
201801 CSE240 Lecture 13
201801 CSE240 Lecture 12
201801 CSE240 Lecture 11
Ad

Recently uploaded (20)

PDF
A review of recent deep learning applications in wood surface defect identifi...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Architecture types and enterprise applications.pdf
PDF
STKI Israel Market Study 2025 version august
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Modernising the Digital Integration Hub
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPT
Geologic Time for studying geology for geologist
PPTX
The various Industrial Revolutions .pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Five Habits of High-Impact Board Members
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPT
What is a Computer? Input Devices /output devices
A review of recent deep learning applications in wood surface defect identifi...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
observCloud-Native Containerability and monitoring.pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Architecture types and enterprise applications.pdf
STKI Israel Market Study 2025 version august
Final SEM Unit 1 for mit wpu at pune .pptx
A novel scalable deep ensemble learning framework for big data classification...
1 - Historical Antecedents, Social Consideration.pdf
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Hindi spoken digit analysis for native and non-native speakers
Tartificialntelligence_presentation.pptx
Modernising the Digital Integration Hub
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Geologic Time for studying geology for geologist
The various Industrial Revolutions .pptx
Developing a website for English-speaking practice to English as a foreign la...
Five Habits of High-Impact Board Members
Enhancing emotion recognition model for a student engagement use case through...
What is a Computer? Input Devices /output devices

201707 SER332 Lecture 14

  • 1. SER332 Introduction to Graphics and Game Development Lecture 14: Mesh Data Structure Javier Gonzalez-Sanchez javiergs@asu.edu PERALTA 230U Office Hours: By appointment
  • 2. Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 2 Midterm 0.00 10.00 20.00 30.00 40.00 50.00 60.00 70.00 80.00 90.00 100.00 1 2 3 4 5 6 7 8 9 10 11 algebra circle OBJfile lookAt viewports displaylists
  • 3. Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 3 Project 3 1 0 2 0 1 0 0 1
  • 5. Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 5 Definition Mesh represent (a geometric object) as a set of finite elements (triangles) for computational modeling.
  • 6. Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 6 Mesh Data Structure typedef Vec3<float> Vec3f; typedef Vec2<float> Vec2f; struct Mesh { vector<Vec3f> vertice_xyz; // array of vertices vector<Vec3f> normal_xyz; // array of normals // array of texture coordinates; assume using 2d textures vector<Vec2f> texture_xy; vector<int> vertex_index; // vertex indices vector<int> normal_index; // normal indices vector<int> texture_index; // texcoord indices };
  • 7. Javier Gonzalez-Sanchez | SER332 | Spring 2017 | 7 Homework • Vector Library (Ilmbase) • C++ Standard Template Library
  • 8. SER332 Introduction to Graphics Javier Gonzalez-Sanchez javiergs@asu.edu Spring 2017 Disclaimer. These slides can only be used as study material for the class SER332 at ASU. They cannot be distributed or used for another purpose.