提交 59f58237 编写于 作者: M Mr.doob

Docs: Removed EdgesHelper and WireframeHelper.

上级 f5d04640
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Line] &rarr;
<h1>[name]</h1>
<div class="desc">Creates a wireframe object that shows the "hard" edges of another object's geometry. To draw a full wireframe image of an object, see [page:WireframeHelper].</div>
<h2>Example</h2>
<code>
geometry = new THREE.BoxGeometry( 10, 10, 10, 2, 2, 2 );
material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
object = new THREE.Mesh( geometry, material );
edges = new THREE.EdgesHelper( object, 0x00ff00 );
scene.add( object );
scene.add( edges );
</code>
<h2>Constructor</h2>
<h3>[name]( [page:Object3D object], [page:Color color], [page:Float thresholdAngle] )</h3>
<div>
object -- Object of which to draw edges <br />
color -- Color of the edges.<br />
thresholdAngle -- the minimim angle (in degrees), between the face normals of adjacent faces, that is required to render an edge. Default is 0.1.
</div>
<div>
Creates a [page:Line], showing only the "hard" edges of the passed object; specifically, no edge will be drawn between faces which are adjacent and coplanar (or nearly coplanar).
</div>
<h2>Properties</h2>
<div>none</div>
<h2>Methods</h2>
<div>none</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Line] &rarr;
<h1>[name]</h1>
<div class="desc">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].</div>
<h2>Example</h2>
<code>
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 );
</code>
[example:webgl_helpers Example using various helpers], [example:webgl_materials_wireframe Alternative approach using a shader.]
<h2>Constructor</h2>
<h3>[name]( [page:Object3D object], [page:Color color] )</h3>
<div>
object -- Object of which to draw edges <br />
color -- Color of the edges.
</div>
<div>
Creates a [page:Line], showing only the edges between vertices of an object.
</div>
<h2>Properties</h2>
<div>none</div>
<h2>Methods</h2>
<div>none</div>
<h2>Source</h2>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
......@@ -231,14 +231,12 @@ var list = {
[ "BoxHelper", "api/extras/helpers/BoxHelper" ],
[ "CameraHelper", "api/extras/helpers/CameraHelper" ],
[ "DirectionalLightHelper", "api/extras/helpers/DirectionalLightHelper" ],
[ "EdgesHelper", "api/extras/helpers/EdgesHelper" ],
[ "FaceNormalsHelper", "api/extras/helpers/FaceNormalsHelper" ],
[ "GridHelper", "api/extras/helpers/GridHelper" ],
[ "HemisphereLightHelper", "api/extras/helpers/HemisphereLightHelper" ],
[ "PointLightHelper", "api/extras/helpers/PointLightHelper" ],
[ "SpotLightHelper", "api/extras/helpers/SpotLightHelper" ],
[ "VertexNormalsHelper", "api/extras/helpers/VertexNormalsHelper" ],
[ "WireframeHelper", "api/extras/helpers/WireframeHelper" ]
[ "VertexNormalsHelper", "api/extras/helpers/VertexNormalsHelper" ]
],
"Extras / Objects": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册