| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>RollerCoasterGeometry - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="BufferGeometry.html">BufferGeometry</a> → </p>
- <h1 translate="no">RollerCoasterGeometry</h1>
- <section>
- <header>
- <div class="class-description"><p>A procedural roller coaster geometry.</p></div>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <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" rel="noopener">Installation#Addons</a>.</p>
- <pre><code class="language-js">import { RollerCoasterGeometry } from 'three/addons/misc/RollerCoaster.js';</code></pre>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="RollerCoasterGeometry" translate="no">new <a href="#RollerCoasterGeometry">RollerCoasterGeometry</a><span class="signature">( curve : <span class="param-type"><a href="Curve.html">Curve</a></span>, divisions : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new geometry.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>curve</strong>
- </td>
- <td class="description last">
- <p>The curve to generate the geometry along.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>divisions</strong>
- </td>
- <td class="description last">
- <p>The number of divisions which defines the detail of the geometry.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/misc/RollerCoaster.js" translate="no" target="_blank" rel="noopener">examples/jsm/misc/RollerCoaster.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|