View Single Post
  #5   Spotlight this post!  
Unread 25-01-2012, 15:22
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming Kinect

I'm happy to see that you wrote a converter to a cluster, but there are a few things worth mentioning.

You can grow the index array and it will extract the next element without an enum cluster wired up. That syntax shortcut comes in handy pretty often.

I attached an alternate implementation that keeps the original cluster order (which matches the Microsoft header file), and uses some casting to simplify the diagram. I also attached a typedef for the cluster. Because ctls are not a supported upload type, they are in a zipped folder.

Greg McKaskle
Attached Files
File Type: zip Vertex Array to Cluster.zip (23.2 KB, 20 views)
Reply With Quote