提交 c365f17c 编写于 作者: M Mugen87

QuickHull3: Clean up

上级 18d20356
......@@ -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;
}
}
} );
......
......@@ -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;
}
}
} );
......
......@@ -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;
}
}
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册