EdgesGeometry.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:BufferGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. This can be used as a helper object to view the edges of a
  14. [page:BufferGeometry geometry].
  15. </p>
  16. <h2>Code Example</h2>
  17. <code>
  18. const geometry = new THREE.BoxGeometry( 100, 100, 100 );
  19. const edges = new THREE.EdgesGeometry( geometry );
  20. const line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial( { color: 0xffffff } ) );
  21. scene.add( line );
  22. </code>
  23. <h2>Examples</h2>
  24. <p>[example:webgl_helpers helpers]</p>
  25. <h2>Constructor</h2>
  26. <h3>
  27. [name]( [param:BufferGeometry geometry], [param:Integer thresholdAngle] )
  28. </h3>
  29. <p>
  30. geometry — Any geometry object.<br />
  31. thresholdAngle — An edge is only rendered if the angle (in degrees)
  32. between the face normals of the adjoining faces exceeds this value.
  33. default = 1 degree.
  34. </p>
  35. <h2>Properties</h2>
  36. <p>See the base [page:BufferGeometry] class for common properties.</p>
  37. <h3>[property:Object parameters]</h3>
  38. <p>
  39. An object with a property for each of the constructor parameters. Any
  40. modification after instantiation does not change the geometry.
  41. </p>
  42. <h2>Methods</h2>
  43. <p>See the base [page:BufferGeometry] class for common methods.</p>
  44. <h2>Source</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>