diff --git a/src/math/convexhull/Face.js b/src/math/convexhull/Face.js index 51590e3df8c47632a28b5c69a32766926b7d4adc..1564ef43bcc4e5f3ad77aa2b1b9321cdb4ff54b4 100644 --- a/src/math/convexhull/Face.js +++ b/src/math/convexhull/Face.js @@ -220,28 +220,7 @@ Object.assign( Face.prototype, { return discardedFaces; - }, - - clone: function () { - - return new this.constructor().copy( this ); - - }, - - copy: function ( other ) { - - this.normal.copy( other.normal ); - this.midpoint.copy( other.midpoint ); - this.area = other.area; - - this.constant = other.constant; - this.outside = other.outside; - this.mark = other.mark; - this.edge = other.edge; - - return this; - - } + } } ); diff --git a/src/math/convexhull/HalfEdge.js b/src/math/convexhull/HalfEdge.js index 833ce7d1cf166e19b8b4b6482f5b142e755a4c6d..5e8c57c0af5fe472d8b33136e2b50a075f1a360e 100644 --- a/src/math/convexhull/HalfEdge.js +++ b/src/math/convexhull/HalfEdge.js @@ -66,25 +66,7 @@ Object.assign( HalfEdge.prototype, { return this; - }, - - clone: function () { - - return new this.constructor().copy( this ); - - }, - - copy: function ( other ) { - - this.vertex.copy( other.vertex ); - this.face.copy( other.face ); - this.next.copy( other.next ); - this.prev.copy( other.prev ); - this.twin.copy( other.twin ); - - return this; - - } + } } ); diff --git a/src/math/convexhull/VertexList.js b/src/math/convexhull/VertexList.js index a763cc8821a7a4fec194e1a4fdf89964f9012d5d..0f6bbb6819845b1d2b79ccb73ed60d77c55c3396 100644 --- a/src/math/convexhull/VertexList.js +++ b/src/math/convexhull/VertexList.js @@ -191,22 +191,7 @@ Object.assign( VertexList.prototype, { return this.head === null; - }, - - clone: function () { - - return new this.constructor().copy( this ); - - }, - - copy: function ( other ) { - - this.head.copy( other.head ); - this.tail.copy( other.tail ); - - return this; - - } + } } );