Fastest Method to compute Linear interpolation between 2 points in QT using OpenGL
问题 I'm trying to interpolate a triangle with the help of vertex coordinates. a |\ | \ | \ | \ b|_ _ _ \c I'm interpolating the vertices in this order (b,a),(a,c)and (c,b). Here the a,b and c are the 3 dimensional coordinates with a color value. a = (x1,y1,z1,c1); b = (x2,y2,z2,c2); c = (x3,y3,z3,c3); Structure used to compute the calculation: struct pointsInterpolateStruct{ QList<double> x,y,z; QList<double> r, g, b, clr; void clear() { x.clear(); y.clear(); z.clear(); r.clear(); g.clear(); b