mathnet / mathnet-numerics

Math.NET Numerics
http://numerics.mathdotnet.com
MIT License
3.44k stars 891 forks source link

[Feature] Add support for 3D coordinates for barycentric interpolation #968

Open frutiemax opened 1 year ago

frutiemax commented 1 year ago

Right now, MathNet only supports 2D Barycentric interpolation. When working with 3D coordinates, we have to convert the 3D coordinates to equivalent 2D coordinates on the triangle plane. It would be more practical that the barycentric interpolation module supports 3D coordinates directly.