GeometryUtils.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. <h1>[name]</h1>
  12. <div class="desc">Contains handy functions geometry manipulations.</div>
  13. <h2>Methods</h2>
  14. <h3> .merge( [page:Geometry geometry1] , [page:Geometry geometry2], [page:Integer materialIndexOffset] )</h3>
  15. <div>
  16. geometry1 — Parent geometry element <br />
  17. geometry2 — Geometry that need to be added in parent <br />
  18. materialIndexOffset — Offset applied to the materialIndex of all the new faces in the merged geometry. Default : 0 <br />
  19. </div>
  20. <h3> .randomPointInTriangle( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC])</h3>
  21. <div>
  22. VectorA — Vector <br />
  23. VectorB — Vector <br />
  24. VectorC — Vector <br />
  25. returns [page:Int Point]
  26. </div>
  27. <h3> .center ( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC]) </h3>
  28. <div>
  29. VectorA — Vector <br />
  30. VectorB — Vector <br />
  31. VectorC — Vector <br />
  32. returns [page:Int Area]
  33. </div>
  34. <h3> .center ( [page:Geometry geometry] ) </h3>
  35. <div>
  36. Geometry — Geometry to Center position
  37. </div>
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>