|
@@ -12,8 +12,6 @@ const _vap = /*@__PURE__*/ new Vector3();
|
|
|
const _vbp = /*@__PURE__*/ new Vector3();
|
|
|
const _vcp = /*@__PURE__*/ new Vector3();
|
|
|
|
|
|
-let warnedGetUV = false;
|
|
|
-
|
|
|
class Triangle {
|
|
|
|
|
|
constructor( a = new Vector3(), b = new Vector3(), c = new Vector3() ) {
|
|
@@ -87,20 +85,6 @@ class Triangle {
|
|
|
|
|
|
}
|
|
|
|
|
|
- static getUV( point, p1, p2, p3, uv1, uv2, uv3, target ) { // @deprecated, r151
|
|
|
-
|
|
|
- if ( warnedGetUV === false ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation().' );
|
|
|
-
|
|
|
- warnedGetUV = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return this.getInterpolation( point, p1, p2, p3, uv1, uv2, uv3, target );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
static getInterpolation( point, p1, p2, p3, v1, v2, v3, target ) {
|
|
|
|
|
|
if ( this.getBarycoord( point, p1, p2, p3, _v3 ) === null ) {
|
|
@@ -211,20 +195,6 @@ class Triangle {
|
|
|
|
|
|
}
|
|
|
|
|
|
- getUV( point, uv1, uv2, uv3, target ) { // @deprecated, r151
|
|
|
-
|
|
|
- if ( warnedGetUV === false ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation().' );
|
|
|
-
|
|
|
- warnedGetUV = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return Triangle.getInterpolation( point, this.a, this.b, this.c, uv1, uv2, uv3, target );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
getInterpolation( point, v1, v2, v3, target ) {
|
|
|
|
|
|
return Triangle.getInterpolation( point, this.a, this.b, this.c, v1, v2, v3, target );
|