I need a simple c++ function which will take in parameters 4 3d(x,y,z) points representing 2 adjacent polygons and a coefficient (float).
The function could be declared like this: void Flatting(3floats p0,3floats p1,3floats p2,3floats p3,float k)
Example of what must do this function:
- if k=0 the function isn't doing anything
- if k=1 the function make the 2 polygons flat (on the same plane)
(k can take any values between 0 and 1 to be able to flat the polygons gradualy)
If you don't understand my english, please ask me.
As it is just a function I need a low price !