EdgesGeometry.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>Example</h2>
  15. [example:webgl_helpers helpers]
  16. <code>
  17. var geometry = new THREE.BoxBufferGeometry( 100, 100, 100 );
  18. var edges = new THREE.EdgesGeometry( geometry );
  19. var line = new THREE.LineSegments( edges, new THREE.LineBasicMaterial( { color: 0xffffff } ) );
  20. scene.add( line );
  21. </code>
  22. <h2>Constructor</h2>
  23. <h3>[name]( [param:Geometry geometry], [param:Integer thresholdAngle] )</h3>
  24. <p>
  25. geometry — Any geometry object.<br />
  26. 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.
  27. </p>
  28. <h2>Properties</h2>
  29. <h3>[property:Object parameters]</h3>
  30. <p>
  31. An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
  32. </p>
  33. <h2>Source</h2>
  34. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  35. </body>
  36. </html>