EdgesGeometry.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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">This can be used as a helper object to view the edges of a [page:BufferGeometry geometry].</p>
  13. <h2>Code Example</h2>
  14. <code>
  15. const geometry = new THREE.BoxGeometry( 100, 100, 100 );
  16. const edges = new THREE.EdgesGeometry( geometry );
  17. const line = new THREE.LineSegments( edges, new THREE.LineBasicMaterial( { color: 0xffffff } ) );
  18. scene.add( line );
  19. </code>
  20. <h2>Examples</h2>
  21. <p>
  22. [example:webgl_helpers helpers]
  23. </p>
  24. <h2>Constructor</h2>
  25. <h3>[name]( [param:BufferGeometry geometry], [param:Integer thresholdAngle] )</h3>
  26. <p>
  27. geometry — Any geometry object.<br />
  28. thresholdAngle — An edge is only rendered if the angle (in degrees) between the face normals of the adjoining faces exceeds this value. default = 1 degree.
  29. </p>
  30. <h2>Properties</h2>
  31. <p>See the base [page:BufferGeometry] class for common properties.</p>
  32. <h3>[property:Object parameters]</h3>
  33. <p>
  34. An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
  35. </p>
  36. <h2>Methods</h2>
  37. <p>See the base [page:BufferGeometry] class for common methods.</p>
  38. <h2>Source</h2>
  39. <p>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </p>
  42. </body>
  43. </html>