Would it be possible to add an operator or method to access a gp_XYZ object as a const double* array ?
This is useful many times when Open Cascade is used outside AIS to render to OpenGL as you can use glVertex3dv( xyz); instead of glVertex3d( xyz.X(), xyz.Y(), xyz.Z());
this executes a bit faster and generates smaller code, when a large number of points are passed on to OpenGL this can speed everything up a lot.
To make this a nice clean solution it would need a change to the gp_XYZ class to use an array for the coordinates: double coord[ 3]; instead of todays: double x,y,z; but as these members are protected anyway this should not have any effect on existing applications.
Would this be possible to implement ?