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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started