RollerCoasterGeometry.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>RollerCoasterGeometry - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="BufferGeometry.html">BufferGeometry</a> → </p>
  13. <h1 translate="no">RollerCoasterGeometry</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A procedural roller coaster geometry.</p></div>
  17. </header>
  18. <article>
  19. <h2 class="subsection-title">Import</h2>
  20. <p><span translate="no">RollerCoasterGeometry</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
  21. <pre><code class="language-js">import { RollerCoasterGeometry } from 'three/addons/misc/RollerCoaster.js';</code></pre>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="RollerCoasterGeometry" translate="no">new <a href="#RollerCoasterGeometry">RollerCoasterGeometry</a><span class="signature">( curve : <span class="param-type">Curve</span>, divisions : <span class="param-type">number</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new geometry.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>curve</code></td>
  33. <td class="description last"><p>The curve to generate the geometry along.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>divisions</code></td>
  37. <td class="description last"><p>The number of divisions which defines the detail of the geometry.</p></td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Source</h2>
  44. <p>
  45. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/misc/RollerCoaster.js" target="_blank" rel="noopener" translate="no">examples/jsm/misc/RollerCoaster.js</a>
  46. </p>
  47. </article>
  48. </section>
  49. <script src="../scripts/linenumber.js"></script>
  50. <script src="../scripts/page.js"></script>
  51. </body>
  52. </html>
粤ICP备19079148号