[page:Line] →

[name]

Creates a wireframe object that shows the edges of another object's geometry. To draw a wireframe image showing only "hard" edges (edges between non-coplanar faces), see [page:EdgesHelper].

Example

geometry = new THREE.BoxGeometry( 10, 10, 10, 2, 2, 2 ); material = new THREE.MeshBasicMaterial( { color: 0xff0000 } ); object = new THREE.Mesh( geometry, material ); wireframe = new THREE.WireframeHelper( object, 0x00ff00 ); scene.add( object ); scene.add( wireframe ); [example:webgl_helpers Example using various helpers], [example:webgl_materials_wireframe Alternative approach using a shader.]

Constructor

[name]( [page:Object3D object], [page:Color color] )

object -- Object of which to draw edges
color -- Color of the edges.
Creates a [page:Line], showing only the edges between vertices of an object.

Properties

none

Methods

none

Source

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]