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
Viewer: CutPlane: Created cut plane form normal and point #332
Conversation
✅ Deploy Preview for bldrs-share ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Heya, I think this still qualifies as draft since it's not working quite yet. Sound right? |
yes, not sure why it is switched to normal pr. |
@pablo-mayrgundter were you able to get any more clarity about why the plane is not cutting through the model? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
@pablo-mayrgundter PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests please. Likes in issues, url -> function, button -> function, clear.
Is it intended that only one cut plain is active at a time? Would be nice to support multiple if it fits in this PR. |
Yes one for now. |
tests .. yes, will add. |
62ee47a
to
dfcca3e
Compare
if you're testing A, and A calls B, and B is a mess to test, then you "mock" B
See docs here: https://jestjs.io/docs/mock-functions#mock-implementations |
I see.. so in this case we would need to create viewer mock which contains a clipper and deleteAllPlaces methods? |
@pablo-mayrgundter created checklist in the #153 |
Ok, please merge in #358, with the improved web-ifc-viewer mock. Then try following the CadView.test for how to go from URL -> asserts on IFCjs. |
Heya, looking back at your original question about testing, you'll want to add a jest.fn() mock method to mocks/web-ifc-viewer.js for viewer.clipper.deleteAllPlanes and assert on it after your code-under-test. Hope that helps! |
eaf8341
to
0faf530
Compare
@pablo-mayrgundter PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wowow! Super jağ!
This PR is addressing #153.
https://deploy-preview-332--bldrs-share.netlify.app/share/v/gh/Swiss-Property-AG/Portfolio/main/ASTRA.ifc#p:z::c:-3.98,12.13,-51.23,18.61,6.65,-8.62