@@ -12,13 +12,16 @@ import { EventDispatcher } from './core/EventDispatcher.js';
12
12
import { Face3 } from './core/Face3.js' ;
13
13
import { Object3D } from './core/Object3D.js' ;
14
14
import { BoxGeometry } from './geometries/BoxGeometry.js' ;
15
+ import { EdgesGeometry } from './geometries/EdgesGeometry.js' ;
15
16
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js' ;
16
17
import { ShapeGeometry } from './geometries/ShapeGeometry.js' ;
18
+ import { WireframeGeometry } from './geometries/WireframeGeometry.js' ;
17
19
import { Light } from './lights/Light.js' ;
18
20
import { AudioLoader } from './loaders/AudioLoader.js' ;
19
21
import { CubeTextureLoader } from './loaders/CubeTextureLoader.js' ;
20
22
import { TextureLoader } from './loaders/TextureLoader.js' ;
21
23
import { Material } from './materials/Material.js' ;
24
+ import { LineBasicMaterial } from './materials/LineBasicMaterial.js' ;
22
25
import { MeshPhongMaterial } from './materials/MeshPhongMaterial.js' ;
23
26
import { MultiMaterial } from './materials/MultiMaterial.js' ;
24
27
import { PointsMaterial } from './materials/PointsMaterial.js' ;
@@ -33,6 +36,7 @@ import { Plane } from './math/Plane.js';
33
36
import { Quaternion } from './math/Quaternion.js' ;
34
37
import { Ray } from './math/Ray.js' ;
35
38
import { Vector3 } from './math/Vector3.js' ;
39
+ import { LineSegments } from './objects/LineSegments.js' ;
36
40
import { LOD } from './objects/LOD.js' ;
37
41
import { Points } from './objects/Points.js' ;
38
42
import { Sprite } from './objects/Sprite.js' ;
@@ -88,6 +92,18 @@ export function Vertex ( x, y, z ) {
88
92
89
93
//
90
94
95
+ export function EdgesHelper ( object , hex ) {
96
+ console . warn ( 'THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.' ) ;
97
+ return new LineSegments ( new EdgesGeometry ( object . geometry ) , new LineBasicMaterial ( { color : hex !== undefined ? hex : 0xffffff } ) ) ;
98
+ }
99
+
100
+ export function WireframeHelper ( object , hex ) {
101
+ console . warn ( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' ) ;
102
+ return new LineSegments ( new WireframeGeometry ( object . geometry ) , new LineBasicMaterial ( { color : hex !== undefined ? hex : 0xffffff } ) ) ;
103
+ }
104
+
105
+ //
106
+
91
107
Object . assign ( Box2 . prototype , {
92
108
center : function ( optionalTarget ) {
93
109
console . warn ( 'THREE.Box2: .center() has been renamed to .getCenter().' ) ;
0 commit comments