alecjacobson / geometry-processing-introduction

Introductory assignment for Geometry Processing course
Mozilla Public License 2.0
116 stars 131 forks source link

Kevin Gibson: Assignment 0 Submission #4

Closed rkevingibson closed 7 years ago

rkevingibson commented 7 years ago

Here's my solution for assignment 0. Both functions generate a (partial) adjacency matrix for the mesh, and compute the solutions from there. The matrix is just the lower half of the proper adjacency matrix, to avoid duplicates. From this, the number of edges is just the number of non-zero entries, and the number of vertices is the number of non-zero rows.

I did reimplement (read: copy and paste) the adjacency matrix code in each file, since I didn't feel like separating it out into a function. This means that the euler_characteristic function doesn't call edges(), since I'm generating the adjacency matrix anyways and I only care about the number of edges, not the individual edges.

alecjacobson commented 7 years ago

✔️