{"comment":{"url":"https://api.github.com/repos/bsgbryan/MinTuts/comments/29042249","html_url":"https://github.com/bsgbryan/MinTuts/commit/f93682d5814038236fb59b17c3e550f7ca29cbc5#commitcomment-29042249","id":29042249,"user":{"login":"bsgbryan","id":30052,"avatar_url":"https://avatars0.githubusercontent.com/u/30052?v=4","gravatar_id":"","url":"https://api.github.com/users/bsgbryan","html_url":"https://github.com/bsgbryan","followers_url":"https://api.github.com/users/bsgbryan/followers","following_url":"https://api.github.com/users/bsgbryan/following{/other_user}","gists_url":"https://api.github.com/users/bsgbryan/gists{/gist_id}","starred_url":"https://api.github.com/users/bsgbryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsgbryan/subscriptions","organizations_url":"https://api.github.com/users/bsgbryan/orgs","repos_url":"https://api.github.com/users/bsgbryan/repos","events_url":"https://api.github.com/users/bsgbryan/events{/privacy}","received_events_url":"https://api.github.com/users/bsgbryan/received_events","type":"User","site_admin":false},"position":37,"line":57,"path":"Assets/Scripts/ProceduralTerrain.cs","commit_id":"f93682d5814038236fb59b17c3e550f7ca29cbc5","created_at":"2018-05-18T23:46:09Z","updated_at":"2018-05-18T23:46:09Z","author_association":"OWNER","body":"The `triangles` list and the `vertices` list are both the same length.\r\n\r\nThe `vertices` list specifies vertices in the proper order to construct properly-wound triangles.\r\n\r\nThe `triangles` list specifies which vertexes belong to what triangles. Unity is smart enough to know that a triangle will only ever have three vertices. The `triangles` list actually has two layers of information:\r\n\r\n1. The items in the list\r\n2. What vertex belongs to what triangle\r\n\r\nThe `triangles` list is actually a list of repeating lists. Indexes 0, 1, and 2 say that `vertices` 0, 1, and 2 belong to the first triangle. Indexes 3, 4, and 5 belong to `vertices` 3, 4, and 5 - which belong to the second triangle. The first and second triangles form our first quad.\r\n\r\nThis pattern repeats for every item in the `vertices` and `triangles` lists, until all triangles and quads have been constructed."}}
{"actor":{"display_login":"bsgbryan"}}