EdgesHelper.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../../list.js"></script>
  6. <script src="../../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../../page.css" />
  8. </head>
  9. <body>
  10. [page:Line] &rarr;
  11. <h1>[name]</h1>
  12. <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>
  13. <h2>Example</h2>
  14. <code>
  15. geometry = new THREE.BoxGeometry( 10, 10, 10, 2, 2, 2 );
  16. material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
  17. object = new THREE.Mesh( geometry, material );
  18. edges = new THREE.EdgesHelper( object, 0x00ff00 );
  19. scene.add( object );
  20. scene.add( edges );
  21. </code>
  22. <h2>Constructor</h2>
  23. <h3>[name]( [page:Object3D object], [page:Color color], [page:Float thresholdAngle] )</h3>
  24. <div>
  25. object -- Object of which to draw edges <br />
  26. color -- Color of the edges.<br />
  27. thresholdAngle -- the minimim angle (in degrees), between the face normals of adjacent faces, that is required to render an edge. Default is 0.1.
  28. </div>
  29. <div>
  30. 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).
  31. </div>
  32. <h2>Properties</h2>
  33. <div>none</div>
  34. <h2>Methods</h2>
  35. <div>none</div>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>