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
Added cylinder primitive #328
Conversation
Hello @tushar5526! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-10-08 11:11:02 UTC |
Codecov Report
@@ Coverage Diff @@
## master #328 +/- ##
==========================================
+ Coverage 88.65% 88.75% +0.10%
==========================================
Files 21 21
Lines 5075 5156 +81
Branches 656 672 +16
==========================================
+ Hits 4499 4576 +77
- Misses 406 408 +2
- Partials 170 172 +2
|
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.
Thank you @tushar5526 for this primitive!
we will look into it and give you more detailed comments. But for now, can you add some unit tests? You can look at https://github.com/fury-gl/fury/blob/master/fury/tests/test_primitive.py.
Thank you.
Thank you for reviewing. Will add the tests soon :) |
@skoudoro, I am a little confused about how to implement the tests for this, I can assert the ndarray shape values, and do I have to check the |
Overall, it looks good. It will be good if you could change the default orientation of the cylinder (length along Y instead of Z). I created a PR in your fork to add some tests https://github.com/tushar5526/fury/pull/2. it is just missing a test when it is capped. I let you add this one last one. |
Typo fixes. Added check for sectors parameter. Changed the base of cylinder from XY plane to XZ plane.
add tests to cylinder PR
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.
This PR looks good to me and is ready to go.
I will wait for any additional comments until tomorrow and then merge it.
Thank you @tushar5526 |
Closes #318
Referred to this source for generating vertices and triangles.
Formatted the
primitive.py
according to PEP 8.