ExtrudeGeometry.html 4.0 KB

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