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
It looks like maybe the second level of arrays in the 2d array also needs to be initialized before they are accessed. otherwise they are undefined.
var BezierPatch = function(points){ this.points = (points === undefined)?[] : points; for (var i = 0; i < 4; i++) { for (var j = 0; j < 4; j++) { this.points[i][j] = new Vec3D(); } } };
The text was updated successfully, but these errors were encountered:
issue #28, toxi.geom.mesh.BezierPatch fails w/o Vec3D[][], #computePo…
d3fb74f
…intAt maximum call stack
thank you for bringing this to my attention. I have fixed the issue with the constructor as well as another problem with BezierPatch#computePointAt.
BezierPatch#computePointAt
I will close this issue once merged into master and released.
thank you!
Sorry, something went wrong.
No branches or pull requests
It looks like maybe the second level of arrays in the 2d array also needs to be initialized before they are accessed. otherwise they are undefined.
var BezierPatch = function(points){
this.points = (points === undefined)?[] : points;
for (var i = 0; i < 4; i++) {
for (var j = 0; j < 4; j++) {
this.points[i][j] = new Vec3D();
}
}
};
The text was updated successfully, but these errors were encountered: