|
|
@@ -29,10 +29,11 @@
|
|
|
|
|
|
<h2>Code Example</h2>
|
|
|
|
|
|
- <code>const geometry = new ConvexGeometry( points );
|
|
|
- const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
|
|
|
- const mesh = new THREE.Mesh( geometry, material );
|
|
|
- scene.add( mesh );
|
|
|
+ <code>
|
|
|
+const geometry = new ConvexGeometry( points );
|
|
|
+const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
|
|
|
+const mesh = new THREE.Mesh( geometry, material );
|
|
|
+scene.add( mesh );
|
|
|
</code>
|
|
|
|
|
|
<h2>Examples</h2>
|