Dusan Bosnjak 20 uur geleden
bovenliggende
commit
26de4f2e78

+ 1 - 1
examples/jsm/geometries/BoxLineGeometry.js

@@ -7,7 +7,7 @@ import {
  * A special type of box geometry intended for {@link LineSegments}.
  *
  * ```js
- * const geometry = new THREE.BoxLineGeometry();
+ * const geometry = new BoxLineGeometry();
  * const material = new THREE.LineBasicMaterial( { color: 0x00ff00 } );
  * const lines = new THREE.LineSegments( geometry, material );
  * scene.add( lines );

+ 1 - 1
examples/jsm/geometries/ParametricGeometry.js

@@ -10,7 +10,7 @@ import {
  * Reference: [Mesh Generation with Python](https://prideout.net/blog/old/blog/index.html@p=44.html)
  *
  * ```js
- * const geometry = new THREE.ParametricGeometry( klein, 25, 25 );
+ * const geometry = new ParametricGeometry( klein, 25, 25 );
  * const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
  * const klein = new THREE.Mesh( geometry, material );
  * scene.add( klein );

+ 1 - 1
examples/jsm/geometries/RoundedBoxGeometry.js

@@ -42,7 +42,7 @@ function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLengt
  * A special type of box geometry with rounded corners and edges.
  *
  * ```js
- * const geometry = new THREE.RoundedBoxGeometry();
+ * const geometry = new RoundedBoxGeometry();
  * const material = new THREE.MeshStandardMaterial( { color: 0x00ff00 } );
  * const cube = new THREE.Mesh( geometry, material );
  * scene.add( cube );

粤ICP备19079148号