Questions tagged «barycentric-coordinates»

7
查找重心坐标的最有效方法是什么?
在我的探查器中,查找重心坐标显然是一个瓶颈。我正在寻求提高效率。 它遵循shirley中的方法,在其中您可以计算通过将点P嵌入三角形内部而形成的三角形的面积。 码: Vector Triangle::getBarycentricCoordinatesAt( const Vector & P ) const { Vector bary ; // The area of a triangle is real areaABC = DOT( normal, CROSS( (b - a), (c - a) ) ) ; real areaPBC = DOT( normal, CROSS( (b - P), (c - P) ) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.