Question: WebGl with Typescript Using Half Edge Structure. Please consult Interactive Computer Graphics 7th Edition -Edward Angel Chapter 6: Lightning & Shading. The Geometry is as
WebGl with Typescript Using Half Edge Structure.
Please consult Interactive Computer Graphics 7th Edition -Edward Angel
Chapter 6: Lightning & Shading.
The Geometry is as follows:
Face (triangle) has a
a. Normal, it has 3 attributes (x,y,z). It's already computed and is available
b. 3 Half Edges, Each has an originating vertex(x,y,z)
c. Vertex has Position (x,y,z), 3 HalfEdges and a Normal
Vertex Normal has to computed. Please provide Type script code to compute it.
Use the threshold angle to decide which face normals need to be averaged to calculate the vertex normal.
Please provide Type script code to achieve both objectives. No javascript or java code.
Feel free to contact if there are any queries.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
