GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Mar-2009, 07:05
love_rhtdmin love_rhtdmin is offline
New Member
 
Join Date: Jan 2009
Posts: 13
love_rhtdmin has a little shameless behaviour in the past

How to compute vertex normal for triangle?


Hello All,

I have the following question related to graphics project using C, related to Vertex Normal for triangle:

For the smooth shading, normal at each vertex needs to be computed. To compute the normal at a vertex, we average the surface normals of the polygons sharing that vertex. In our lab3 assignment, how could it be done? How would I know the polygons sharing the specified vertex? Do I need to check the vertex list of all the triangles in the OFF file and mark those triangles that contain the vertex under consideration. Then compute the surface normal for each of those marked triangles and average them to get normal at a vertex. Is it the right way to compute a normal at a vertex? I think this is quite tedious. Is there any simple way to compute the normal at a vertex?

Thanks a lot.
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple vertex editing example colagor FLTK Forum 1 19-Feb-2009 18:54
C++ Graph Representation Problem Peter_APIIT C++ Forum 1 15-Jan-2009 06:14
Memory leak when nothing is happening... How can I even debug this ? Algar MS Visual C++ / MFC Forum 10 19-Nov-2007 07:17
Strange C++ code memory leakage problem gaoanyu C++ Forum 7 04-Nov-2005 08:09
shorthest path-another way Pandiani C++ Forum 6 09-May-2004 19:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:54.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.