How to discretize points on edges, make 3D plane and calculate residuals

I am trying to discretize points on edges, make a plane out of them and calculate residuals.
For the moment, we use the trial version of OCC java wrappers (latest dev version) until our license gets processed.
I did search forum and there are posts with recommendation to use GCPnts_UniformAbscissa. I don't have the class at all. In the documentation the class is present.
Any idea about other ways how it can be done would be very much appreciated!

Thank you in advance!