| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>ParametricFunctions - 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>
- <h1 translate="no">ParametricFunctions</h1>
- <section>
- <header>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <p><span translate="no">ParametricFunctions</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 * as ParametricFunctions from 'three/addons/geometries/ParametricFunctions.js';</code></pre>
- <div class="container-overview">
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="~klein" translate="no">.<a href="#~klein">klein</a><span class="signature">( v : <span class="param-type">number</span>, u : <span class="param-type">number</span>, target : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span> <span class="type-signature">(inner) </span></h3>
- <div class="method">
- <div class="description">
- <p>A parametric function representing the Klein bottle.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>v</strong>
- </td>
- <td class="description last">
- <p>The <code>v</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>u</strong>
- </td>
- <td class="description last">
- <p>The <code>u</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>target</strong>
- </td>
- <td class="description last">
- <p>The target vector that is used to store the method's result.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="~mobius" translate="no">.<a href="#~mobius">mobius</a><span class="signature">( u : <span class="param-type">number</span>, t : <span class="param-type">number</span>, target : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span> <span class="type-signature">(inner) </span></h3>
- <div class="method">
- <div class="description">
- <p>A parametric function representing a flat mobius strip.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>u</strong>
- </td>
- <td class="description last">
- <p>The <code>u</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>t</strong>
- </td>
- <td class="description last">
- <p>The <code>v</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>target</strong>
- </td>
- <td class="description last">
- <p>The target vector that is used to store the method's result.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="~mobius3d" translate="no">.<a href="#~mobius3d">mobius3d</a><span class="signature">( u : <span class="param-type">number</span>, t : <span class="param-type">number</span>, target : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span> <span class="type-signature">(inner) </span></h3>
- <div class="method">
- <div class="description">
- <p>A parametric function representing a volumetric mobius strip.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>u</strong>
- </td>
- <td class="description last">
- <p>The <code>u</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>t</strong>
- </td>
- <td class="description last">
- <p>The <code>v</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>target</strong>
- </td>
- <td class="description last">
- <p>The target vector that is used to store the method's result.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="~plane" translate="no">.<a href="#~plane">plane</a><span class="signature">( u : <span class="param-type">number</span>, v : <span class="param-type">number</span>, target : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span> <span class="type-signature">(inner) </span></h3>
- <div class="method">
- <div class="description">
- <p>A parametric function representing a flat plane.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>u</strong>
- </td>
- <td class="description last">
- <p>The <code>u</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>v</strong>
- </td>
- <td class="description last">
- <p>The <code>v</code> coordinate on the surface in the range <code>[0,1]</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>target</strong>
- </td>
- <td class="description last">
- <p>The target vector that is used to store the method's result.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/ParametricFunctions.js" translate="no" target="_blank" rel="noopener">examples/jsm/geometries/ParametricFunctions.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|