|
@@ -11,23 +11,20 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <p class="desc">Generate geometry representing a parametric surface.</p>
|
|
|
-
|
|
|
- <script>
|
|
|
-
|
|
|
- // iOS iframe auto-resize workaround
|
|
|
-
|
|
|
- if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
|
|
|
-
|
|
|
- const scene = document.getElementById( 'scene' );
|
|
|
+ <p class="desc">
|
|
|
+ Generate geometry representing a parametric surface.
|
|
|
+ </p>
|
|
|
|
|
|
- scene.style.width = getComputedStyle( scene ).width;
|
|
|
- scene.style.height = getComputedStyle( scene ).height;
|
|
|
- scene.setAttribute( 'scrolling', 'no' );
|
|
|
+ <h2>Import</h2>
|
|
|
|
|
|
- }
|
|
|
+ <p>
|
|
|
+ [name] is an add-on, and must be imported explicitly.
|
|
|
+ See [link:#manual/introduction/Installation Installation / Addons].
|
|
|
+ </p>
|
|
|
|
|
|
- </script>
|
|
|
+ <code>
|
|
|
+ import { ParametricGeometry } from 'three/addons/geometries/ParametricGeometry.js';
|
|
|
+ </code>
|
|
|
|
|
|
<h2>Code Example</h2>
|
|
|
|