Retrieving Geom color

When using per-vertex shading, how would you retrieve the color of a given vertex (or polygon)?

I would like to use a collision ray to collide into some geometry that has baked-in color. Based on that collision, I would like to know what color the collisionRay is intersecting with.
I have been looking at GeomVetexData, but thats not helping much. There is a setColor(), but no getColor()

Any suggestions or hints?

Thank you

So I guess this is not possible unless I go into the GeomVertexData and get the color column of the vertex array data, which I don’t want to do. It gets a little too deep into the source code to handle it properly.