alecjacobson / computer-graphics-meshes

Computer Graphics Assignment about Meshes
25 stars 30 forks source link

src/vertex_triangle_adjacency.cpp used in both computing per vertex normals and per corner normals #1

Closed velociraptor111 closed 6 years ago

velociraptor111 commented 6 years ago

From my understanding in computing both per vertex normals and per corner normals, we need to be able to get all the Faces which are incident on the vertex.

Is there any particular reason why the function vertex_triangle_adjacency() is only included in the per_corner_normals.cpp and not in per_vertex_normals.cpp ??

EDIT I ended up just importing the function in my per_vertex_normals.cpp , just verifying that we are allowed to do this

alecjacobson commented 6 years ago

yes, this is OK. Though you could ask yourself if it's necessary.