ExtrudeGeometry.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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:Geometry] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">Creates extruded geometry from a path shape</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]([page:Array shapes], [page:Object options])</h3>
  16. <div>
  17. shapes — Shape or an array of shapes. <br />
  18. options — Object that can contain the following parameters.
  19. <ul>
  20. <li>curveSegments — int. number of points on the curves</li>
  21. <li>steps — int. number of points used for subdividing segements of extrude spline</li>
  22. <li>amount — int. Depth to extrude the shape</li>
  23. <li>bevelEnabled — bool. turn on bevel</li>
  24. <li>bevelThickness — float. how deep into the original shape bevel goes</li>
  25. <li>bevelSize — float. how far from shape outline is bevel</li>
  26. <li>bevelSegments — int. number of bevel layers</li>
  27. <li>extrudePath — THREE.CurvePath. 3d spline path to extrude shape along. (creates Frames if (frames aren't defined)</li>
  28. <li>frames — THREE.TubeGeometry.FrenetFrames. containing arrays of tangents, normals, binormals</li>
  29. <li>material — int. material index for front and back faces</li>
  30. <li>extrudeMaterial — int. material index for extrusion and beveled faces</li>
  31. <li>UVGenerator — Object. object that provides UV generator functions</li>
  32. </ul>
  33. </div>
  34. <div>
  35. This object extrudes an 2D shape to an 3D geometry.
  36. </div>
  37. <h2>Properties</h2>
  38. <h2>Methods</h2>
  39. <h3>[method:null addShapeList]([page:Array shapes], [page:Object options])</h3>
  40. <div>
  41. shapes — An Array of shapes to add. <br />
  42. options — Object that can contain the following parameters.
  43. <ul>
  44. <li>curveSegments — int. number of points on the curves</li>
  45. <li>steps — int. number of points used for subdividing segements of extrude spline</li>
  46. <li>amount — int. Depth to extrude the shape</li>
  47. <li>bevelEnabled — bool. turn on bevel</li>
  48. <li>bevelThickness — float. how deep into the original shape bevel goes</li>
  49. <li>bevelSize — float. how far from shape outline is bevel</li>
  50. <li>bevelSegments — int. number of bevel layers</li>
  51. <li>extrudePath — THREE.CurvePath. 3d spline path to extrude shape along. (creates Frames if (frames aren't defined)</li>
  52. <li>frames — THREE.TubeGeometry.FrenetFrames. containing arrays of tangents, normals, binormals</li>
  53. <li>material — int. material index for front and back faces</li>
  54. <li>extrudeMaterial — int. material index for extrusion and beveled faces</li>
  55. <li>UVGenerator — Object. object that provides UV generator functions</li>
  56. </ul>
  57. </div>
  58. <div>Adds the shapes to the list to extrude.</div>
  59. <h3>[method:null addShape]([page:Shape shape], [page:Object options])</h3>
  60. <div>
  61. shape — A shape to add. <br />
  62. options — Object that can contain the following parameters.
  63. <ul>
  64. <li>curveSegments — int. number of points on the curves</li>
  65. <li>steps — int. number of points used for subdividing segements of extrude spline</li>
  66. <li>amount — int. Depth to extrude the shape</li>
  67. <li>bevelEnabled — bool. turn on bevel</li>
  68. <li>bevelThickness — float. how deep into the original shape bevel goes</li>
  69. <li>bevelSize — float. how far from shape outline is bevel</li>
  70. <li>bevelSegments — int. number of bevel layers</li>
  71. <li>extrudePath — THREE.CurvePath. 3d spline path to extrude shape along. (creates Frames if (frames aren't defined)</li>
  72. <li>frames — THREE.TubeGeometry.FrenetFrames. containing arrays of tangents, normals, binormals</li>
  73. <li>material — int. material index for front and back faces</li>
  74. <li>extrudeMaterial — int. material index for extrusion and beveled faces</li>
  75. <li>UVGenerator — Object. object that provides UV generator functions</li>
  76. </ul>
  77. </div>
  78. <div>Add the shape to the list to extrude.</div>
  79. <h2>Source</h2>
  80. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  81. </body>
  82. </html>