PCD data needs to be converted in range which is understood by the OpenGL?

Please see

In particular, Posting Guidelines #4 and #5. You’ve provided almost no info.

Also in case it matters to you, this code has chosen one of the slowest ways to draw pretty much anything in OpenGL. This is extreme legacy code and heavily discouraged if performance matters.