We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are two methods ThreeBSP.Node and ThreeBSP.Node.prototype.build that if I am not mistaken seem to do exactly the same.
ThreeBSP.Node
ThreeBSP.Node.prototype.build
Maybe one of them can be removed (duplicate code).
The text was updated successfully, but these errors were encountered:
They definitely do the same thing. The ThreeBSP.Node constructor should do
this.polygons = []; this.front = this.back = undefined; if ( !(polygons instanceof Array) || polygons.length === 0 ) return;
and then call this.build(polygons); to use the method
this.build(polygons);
Sorry, something went wrong.
No branches or pull requests
There are two methods
ThreeBSP.Node
andThreeBSP.Node.prototype.build
that if I am not mistaken seem to do exactly the same.Maybe one of them can be removed (duplicate code).
The text was updated successfully, but these errors were encountered: