|
@@ -1,26 +1,9 @@
|
|
import {
|
|
import {
|
|
BufferGeometry,
|
|
BufferGeometry,
|
|
- Float32BufferAttribute,
|
|
|
|
- Geometry
|
|
|
|
|
|
+ Float32BufferAttribute
|
|
} from '../../../build/three.module.js';
|
|
} from '../../../build/three.module.js';
|
|
import { ConvexHull } from '../math/ConvexHull.js';
|
|
import { ConvexHull } from '../math/ConvexHull.js';
|
|
|
|
|
|
-// ConvexGeometry
|
|
|
|
-
|
|
|
|
-var ConvexGeometry = function ( points ) {
|
|
|
|
-
|
|
|
|
- Geometry.call( this );
|
|
|
|
-
|
|
|
|
- this.fromBufferGeometry( new ConvexBufferGeometry( points ) );
|
|
|
|
- this.mergeVertices();
|
|
|
|
-
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-ConvexGeometry.prototype = Object.create( Geometry.prototype );
|
|
|
|
-ConvexGeometry.prototype.constructor = ConvexGeometry;
|
|
|
|
-
|
|
|
|
-// ConvexBufferGeometry
|
|
|
|
-
|
|
|
|
var ConvexBufferGeometry = function ( points ) {
|
|
var ConvexBufferGeometry = function ( points ) {
|
|
|
|
|
|
BufferGeometry.call( this );
|
|
BufferGeometry.call( this );
|
|
@@ -72,4 +55,4 @@ var ConvexBufferGeometry = function ( points ) {
|
|
ConvexBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
|
|
ConvexBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
|
|
ConvexBufferGeometry.prototype.constructor = ConvexBufferGeometry;
|
|
ConvexBufferGeometry.prototype.constructor = ConvexBufferGeometry;
|
|
|
|
|
|
-export { ConvexGeometry, ConvexBufferGeometry };
|
|
|
|
|
|
+export { ConvexBufferGeometry };
|