WireframeGeometry.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 a [page:Geometry Geometry] object as a wireframe.</p>
  14. <h2>Code Example</h2>
  15. <code>
  16. var geometry = new THREE.SphereBufferGeometry( 100, 100, 100 );
  17. var wireframe = new THREE.WireframeGeometry( geometry );
  18. var line = new THREE.LineSegments( wireframe );
  19. line.material.depthTest = false;
  20. line.material.opacity = 0.25;
  21. line.material.transparent = true;
  22. scene.add( line );
  23. </code>
  24. <h2>Examples</h2>
  25. <p>
  26. [example:webgl_helpers helpers]
  27. </p>
  28. <h2>Constructor</h2>
  29. <h3>[name]( [param:Geometry geometry] )</h3>
  30. <p>
  31. geometry — any geometry object.
  32. </p>
  33. <h2>Properties</h2>
  34. <p>See the base [page:BufferGeometry] class for common properties.</p>
  35. <h2>Methods</h2>
  36. <p>See the base [page:BufferGeometry] class for common methods.</p>
  37. <h2>Source</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>