Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions