Skip to content
New issue

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

fixing angle-axis style rotation #90

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Conversation

ingobecker
Copy link
Contributor

Reapplied the rotation fix.

@@ -225,7 +231,7 @@ test('expand (single item)', t => {
const op1 = cube()
const obs = expand(10, 5, op1)

t.deepEqual(obs.polygons[0].vertices[0], {pos: {_x: -10, _y: 0, _z: 0}, tag: 25909})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test failed caused by a differing tag value. I don't excatly know what a tag is used for but it looks like some kind of uniqe value to me. Hope changing it doesn't have side effects and is ok.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an unfortunate side effect for the internals of CSG objects (there is an ever increasing tag counter that is used by some of the boolean operation algorithm to distinguish or fuse together polygons. It is very clunky and quite annoying for tests since the tag value can vary depending on what tests ran before.
So no worries :)

@kaosat-dev
Copy link
Contributor

Thanks a lot for opening this again here @ingobecker :) much appreciated!
I will take a closer look & merge if all is good !

@kaosat-dev
Copy link
Contributor

All good, merging ! Thanks @ingobecker (and sorry for the delay!)

@kaosat-dev kaosat-dev merged commit 6c28c1c into jscad:master Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants