ConvexBufferGeometry.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <script src="page.js"></script>
  9. <link type="text/css" rel="stylesheet" href="page.css" />
  10. </head>
  11. <body>
  12. [page:BufferGeometry] &rarr;
  13. <h1>[name]</h1>
  14. <p class="desc">[name] can be used to generate a convex hull for a given array of 3D points.
  15. The average time complexity for this task is considered to be O(nlog(n)).</p>
  16. <h2>Code Example</h2>
  17. <code>var geometry = new ConvexBufferGeometry( points );
  18. var material = new THREE.MeshBasicMaterial( {color: 0x00ff00} );
  19. var mesh = new THREE.Mesh( geometry, material );
  20. scene.add( mesh );
  21. </code>
  22. <h2>Examples</h2>
  23. <p>[example:webgl_geometry_convex geometry / convex ]</p>
  24. <h2>Constructor</h2>
  25. <h3>[name]( [param:Array points] )</h3>
  26. <p>
  27. points — Array of [page:Vector3 Vector3s] that the resulting convex hull will contain.
  28. </p>
  29. <h2>Source</h2>
  30. <p>
  31. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/ConvexGeometry.js examples/jsm/geometries/ConvexGeometry.js]
  32. </p>
  33. </body>
  34. </html>