Question: Question 1: A student is planning a polygon mesh data structure in which vertices are stored in a vertex array, and then the triangular faces

 Question 1: A student is planning a polygon mesh data structure

Question 1: A student is planning a polygon mesh data structure in which vertices are stored in a vertex array, and then the triangular faces in the mesh each store the indices of the vertices and the triangle's face plane normal vector. The face data structure is given below. class Triangle { int vertices[3]; il The vertex indices. float nx, ny, nz; // The face-plane normal. }; a. Is this a convenient way to represent a mesh if used with flat shading? Explain your reasoning. (2 points) b. Suggest an object for which this is a good mesh format when used with Gouraud shading. Explain. (2 points) c. Suggest an object for which this is a bad mesh format when used with Gouraud shading? Explain. (2 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!