Browse Source

.getPlane method needs a Plane as a target

THREE.Triangle: .getPlane() target should be a Plane
krong 5 năm trước cách đây
mục cha
commit
770415be74
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/math/Triangle.js

+ 2 - 1
src/math/Triangle.js

@@ -1,4 +1,5 @@
 import { Vector3 } from './Vector3.js';
+import { Plane } from './Plane.js';
 
 /**
  * @author bhouston / http://clara.io
@@ -196,7 +197,7 @@ Object.assign( Triangle.prototype, {
 		if ( target === undefined ) {
 
 			console.warn( 'THREE.Triangle: .getPlane() target is now required' );
-			target = new Vector3();
+			target = new Plane();
 
 		}