Article | 60001740 |
Type | Bug |
Product | Engine |
Version | 6022 |
Date Added | 6/22/2012 |
Fixed | (6/22/2012) |
Submitted by | Graham Parker |
Summary
Interpolation of Point to a triangle returns wrong result example: gTriangle t = new gTriangle( new gPoint(606298.804, 7654031.64, 2299.0), new gPoint(606298.056, 7654031.368, 2297.0), new gPoint(606298.831, 7654032.062, 2300.0) ); gPoint pt = new gPoint(606298.3517599972D, 7654031.5019632708D, 0.0); gPoint intercept = new gPoint(pt.x, pt.y, t.InterpolatePoint(pt));//return wrong z value
Solution
VectorDraw.Geometry.Globals.InterpolatePointInTriangle and gTriangle.InterpolatePoint method was fixed in 6023