
上QQ阅读APP看书,第一时间看更新
How it works...
We create a custom editor window and set up the OnScene delegate function for handling events on the scene window. Also, we are capable of creating the graph nodes by traversing the mesh vertex arrays, computing each triangle's centroid. Finally, we make use of the graph's LoadGraph function in order to compute neighbors.