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

Refactor CapsuleMesh #126

Merged
merged 2 commits into from Jun 7, 2021
Merged

Refactor CapsuleMesh #126

merged 2 commits into from Jun 7, 2021

Conversation

AlmasB
Copy link
Collaborator

@AlmasB AlmasB commented Jan 4, 2021

  • 1-pass Refactor
  • 1-pass test
  1. In these refactors, I'm noticing use of PI, cos, sin, etc. math functions that constantly get converted to float. I think for readability's sake it would be beneficial to extract a small subset of Math into corresponding MathF (F for float) class. -- will open an issue for this

  2. Re: order of properties vs updateMesh() / createMesh(). Given properties, when invalidated, call updateMesh(), I think it feels more natural to have properties first, then update/create mesh. Plus, from reader's perspective, all constructor / property code is trivial, so can skim through quickly until the end of file, where all complex update/create mesh goes. Let me know if you agree.

@jperedadnr jperedadnr merged commit 7e8c11e into FXyz:master Jun 7, 2021
@AlmasB AlmasB deleted the refactor-capsulemesh branch June 7, 2021 08:33
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.

None yet

2 participants