I know picking objects is well covered topic, nevertheless I have problems with it and asking you to help me.
So, my objective is to select (pick) some primitive on the screen, surround picked object with some border (for visibility) and return list of it's vertices.
Code samples, which I found in internet are built about "primitive structures" - each primitive, like line, triangle, rectangle, etc. has it's representation class with data of each primitive. In my program I use a little different approach: I have 1 global vertexBuffer and IndexBuffer. Those buffers contain locked data of whole figure, which can have very much different primitives. I need to pick some of those primitives. Is it possible with such project structure?