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

Consolidate all transformation code in a single module #275

Merged
merged 8 commits into from
Mar 2, 2022
Merged

Conversation

hannobraun
Copy link
Owner

Adds the new module, kernel::algorithms::transform and consolidates all transformation code in there.

This has the following advantages:

  1. All transformation code now lives in a single module, where it is easier to understand, modify, and test it.
  2. Vertex::transform has been replaced, making Vertices::create the only way that Vertex instances can be created. This enables the implementation of vertex validation (Vertex validation #242).

To be clear, this doesn't make the transformation code any more beautiful, but this is not the priority right now. The transformation code is ugly because the data structures it operates on are not suited for their purpose. This is going to change, bit by bit, and as it changes, the transformation code will improve as a side effect.

The goal here is to collect all the transformation code in a single
module, where it's easier to understand and test.
With this change, all vertex creation now goes through
`Vertices::create`, paving the way to vertex validation to be
implemented.
@hannobraun hannobraun merged commit df20ab7 into main Mar 2, 2022
@hannobraun hannobraun deleted the transform branch March 2, 2022 15: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.

1 participant