|
@@ -21,8 +21,10 @@ import {
|
|
import { BufferGeometry } from './core/BufferGeometry.js';
|
|
import { BufferGeometry } from './core/BufferGeometry.js';
|
|
import { EventDispatcher } from './core/EventDispatcher.js';
|
|
import { EventDispatcher } from './core/EventDispatcher.js';
|
|
import { Face3 } from './core/Face3.js';
|
|
import { Face3 } from './core/Face3.js';
|
|
|
|
+import { Geometry } from './core/Geometry';
|
|
import { Object3D } from './core/Object3D.js';
|
|
import { Object3D } from './core/Object3D.js';
|
|
import { Uniform } from './core/Uniform';
|
|
import { Uniform } from './core/Uniform';
|
|
|
|
+import { GridHelper } from './extras/helpers/GridHelper.js';
|
|
import { BoxGeometry } from './geometries/BoxGeometry.js';
|
|
import { BoxGeometry } from './geometries/BoxGeometry.js';
|
|
import { EdgesGeometry } from './geometries/EdgesGeometry.js';
|
|
import { EdgesGeometry } from './geometries/EdgesGeometry.js';
|
|
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
|
|
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
|
|
@@ -162,6 +164,12 @@ export function EdgesHelper( object, hex ) {
|
|
return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+Object.assign( GridHelper.prototype, {
|
|
|
|
+ setColors: function () {
|
|
|
|
+ console.error( 'THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.' );
|
|
|
|
+ }
|
|
|
|
+} )
|
|
|
|
+
|
|
export function WireframeHelper( object, hex ) {
|
|
export function WireframeHelper( object, hex ) {
|
|
console.warn( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' );
|
|
console.warn( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' );
|
|
return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
|
|
@@ -345,6 +353,13 @@ Object.assign( Vector3.prototype, {
|
|
|
|
|
|
//
|
|
//
|
|
|
|
|
|
|
|
+Object.assign( Geometry.prototype, {
|
|
|
|
+ computeTangents: function () {
|
|
|
|
+ console.warn( 'THREE.Geometry: .computeTangents() has been removed.' );
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+} );
|
|
|
|
+
|
|
Object.assign( Object3D.prototype, {
|
|
Object.assign( Object3D.prototype, {
|
|
getChildByName: function ( name ) {
|
|
getChildByName: function ( name ) {
|
|
console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' );
|
|
console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' );
|