Anybody Know how I can get a weight distribution from mesh vertices

I tried to make an app with Openframeworks that would fill my character with particles to get a distribution of volume. For some reason it did not work. If there is some way that I can relate a character’s volume to vertices then I could give vertices a weight.