GeometryUtils.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">Contains handy functions geometry manipulations.</div>
  12. <h2>Methods</h2>
  13. <h3> .merge( [page:Geometry geometry1] , [page:Geometry geometry2], [page:Integer materialIndexOffset] )</h3>
  14. <div>
  15. geometry1 — Parent geometry element <br />
  16. geometry2 — Geometry that need to be added in parent <br />
  17. materialIndexOffset — Offset applied to the materialIndex of all the new faces in the merged geometry. Default : 0 <br />
  18. </div>
  19. <h3> .randomPointInTriangle( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC])</h3>
  20. <div>
  21. VectorA — Vector <br />
  22. VectorB — Vector <br />
  23. VectorC — Vector <br />
  24. returns [page:Int Point]
  25. </div>
  26. <h3> .center ( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC]) </h3>
  27. <div>
  28. VectorA — Vector <br />
  29. VectorB — Vector <br />
  30. VectorC — Vector <br />
  31. returns [page:Int Area]
  32. </div>
  33. <h3> .center ( [page:Geometry geometry] ) </h3>
  34. <div>
  35. Geometry — Geometry to Center position
  36. </div>
  37. <h2>Source</h2>
  38. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  39. </body>
  40. </html>