1
0

WireframeGeometry.html 1.2 KB

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