From c365f17ccb6d6d222b3a069a10a3753ae8dfc985 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Thu, 9 Mar 2017 10:59:55 +0100 Subject: [PATCH] QuickHull3: Clean up --- src/math/convexhull/Face.js | 23 +---------------------- src/math/convexhull/HalfEdge.js | 20 +------------------- src/math/convexhull/VertexList.js | 17 +---------------- 3 files changed, 3 insertions(+), 57 deletions(-) diff --git a/src/math/convexhull/Face.js b/src/math/convexhull/Face.js index 51590e3df8..1564ef43bc 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 833ce7d1cf..5e8c57c0af 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 a763cc8821..0f6bbb6819 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; - - } + } } ); -- GitLab