EdgesGeometry.html 1.5 KB

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