Skip to content

Instantly share code, notes, and snippets.

@trentbrooks
Last active December 16, 2015 05:39
Show Gist options
  • Save trentbrooks/5386400 to your computer and use it in GitHub Desktop.
Save trentbrooks/5386400 to your computer and use it in GitHub Desktop.
All the indices for the 121 face tracked points for the windows kinect. The windows examples work this out in a roundabout way, but it never changes so saving here for future ref (for use in Openframeworks).
/*
There are 206 triangles, 121 vertices, 618 indices when using the Kinect for Windows face tracking api.
The indices never change, so saving here for reference.
*/
static ofIndexType FACEMESH_INDICES[618] = {1,0,11,34,0,1,44,0,34,1,11,12,45,44,34,13,1,12,2,1,13,34,1,2,34,2,46,45,34,46,13,12,14,15,13,14,16,13,15,16,2,13,17,2,16,3,2,17,50,2,3,49,2,50,46,2,49,48,46,49,47,46,48,47,45,46,15,14,29,20,15,29,19,18,15,15,18,16,17,16,18,19,17,18,77,17,23,77,3,17,50,3,78,50,78,56,51,50,52,51,49,50,51,48,49,52,48,51,62,48,53,62,47,48,27,29,28,27,20,29,25,24,26,59,57,58,62,53,60,61,62,60,33,111,26,111,75,26,26,75,25,58,76,59,59,76,112,59,112,66,7,6,33,66,6,7,10,9,32,65,9,10,5,6,76,75,6,5,78,3,77,79,7,33,81,7,79,87,7,81,66,7,80,80,7,82,82,7,87,89,80,82,64,80,89,81,79,88,88,79,31,33,26,79,79,26,31,80,59,66,64,59,80,85,83,88,31,85,88,85,8,83,8,40,83,84,40,8,86,84,8,84,86,89,89,86,64,8,85,9,86,8,9,31,32,85,85,32,9,64,86,65,86,9,65,24,27,26,32,90,30,31,90,32,28,30,90,31,26,90,26,27,90,27,28,90,57,59,60,63,91,65,65,91,64,63,61,91,59,64,91,60,59,91,61,60,91,23,92,77,25,92,23,75,92,25,78,93,56,58,93,76,56,93,58,92,94,77,75,94,92,5,94,75,76,94,5,93,94,76,78,94,93,77,94,78,15,20,95,95,20,97,99,20,101,101,20,27,15,95,19,19,95,21,21,95,97,24,101,27,22,101,24,99,101,22,17,103,23,103,105,23,107,109,23,109,25,23,19,103,17,21,103,19,105,103,21,22,109,107,24,109,22,25,109,24,50,56,104,104,56,106,108,56,110,110,56,58,50,104,52,52,104,54,54,104,106,108,110,55,55,110,57,57,110,58,96,53,48,96,98,53,102,53,100,60,53,102,52,96,48,54,96,52,98,96,54,55,102,100,57,102,55,60,102,57,75,111,6,6,111,33,6,112,76,66,112,6,70,73,74,69,73,70,72,67,68,71,67,72,70,53,69,73,56,74,72,23,71,67,20,68,53,98,69,98,54,69,69,54,73,73,54,106,73,106,56,74,56,108,108,55,74,74,55,70,70,55,100,70,100,53,97,20,67,21,97,67,71,21,67,105,21,71,23,105,71,68,20,99,22,68,99,68,22,72,72,22,107,72,107,23,113,61,63,113,62,61,114,62,113,114,47,62,115,47,114,115,45,47,116,114,113,116,115,114,117,30,28,117,28,29,118,117,29,118,29,14,119,118,14,119,14,12,120,117,118,120,118,119,83,81,88,83,40,81,84,89,82,84,82,87,40,87,81,40,84,87};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment