Browse Source

QuickHull3: Clean up

Mugen87 8 years ago
parent
commit
c365f17ccb
3 changed files with 3 additions and 57 deletions
  1. 1 22
      src/math/convexhull/Face.js
  2. 1 19
      src/math/convexhull/HalfEdge.js
  3. 1 16
      src/math/convexhull/VertexList.js

+ 1 - 22
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;
-
-	}
+  }
 
 } );
 

+ 1 - 19
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;
-
-	}
+  }
 
 } );
 

+ 1 - 16
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;
-
-	}
+  }
 
 } );