-
Notifications
You must be signed in to change notification settings - Fork 183
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
Adding box actor #958
base: v2
Are you sure you want to change the base?
Adding box actor #958
Conversation
a simple box test to be updated when record is available
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.
for the box to appear with the correct edges and lighting I had to change the vertices numbers to 24 for each box. this is unavoidable
ok, make sense. Can you update all the tests due to this change. As you can see above, tests are failing due to change, especially test_primitive.py::test_vertices_primitives
.
All tests should be green before we start to review
Also, I believe we should rename the primitive |
Hi @skoudoro , thanks for the review and yes it is important to keep both versions maybe we come up with a fix later and revert to the old ways! I will do the same for other actors is needed |
I have updated the actor and the tests but, I am not sure about the argument name! @skoudoro |
… approaches (24 vs 8 vertices))
Pygfx calculates normals in a specific way, and for the box to appear with the correct edges and lighting I had to change the vertices numbers to 24 for each box. this is unavoidable.