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

implement 2D map and basic operations #3

Merged
merged 47 commits into from
Feb 19, 2024
Merged

implement 2D map and basic operations #3

merged 47 commits into from
Feb 19, 2024

Conversation

imrn99
Copy link
Collaborator

@imrn99 imrn99 commented Feb 9, 2024

implement 2D map and basic operations

Implementation of 2D combinatorial maps.

To-Do before merging:

  • 2-map editing interfaces
  • first implementation for orbits / i-cells computation
  • Complete in-code documentation
  • (optional) Add basic testing: as doc examples

Scope

  • Code: addition to honeycomb-core

Type of change

  • New feature(s)

Other

...

Necessary follow-up

  • Needs documentation: in user guide, mostly
  • Needs testing
  • Other: Implement proper I/O and conversion code to mesh structures

Mentions

...

Copy link
Member

@cedricchevalier19 cedricchevalier19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think identifiers should be custom types. It can help to know what kind of indirections are stored.

We can change implementation from simple aliasing to more opaque type.

honeycomb-core/src/cmap/embed.rs Outdated Show resolved Hide resolved
honeycomb-core/src/cmap/map.rs Outdated Show resolved Hide resolved
@imrn99
Copy link
Collaborator Author

imrn99 commented Feb 9, 2024

I think identifiers should be custom types. It can help to know what kind of indirections are stored.

We can change implementation from simple aliasing to more opaque type.

I replaced usize with custom ID types & updated methods accordingly in 971cf6a

Side effect: when the custom types are set as usize, many warnings pop up because of now useless type conversions. Overall, this still is better this way since it will help differentiate Dart and DartIdentifier in the long run.

Copy link
Member

@cedricchevalier19 cedricchevalier19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work but try to keep PR smaller next time!

honeycomb-core/src/twomap.rs Outdated Show resolved Hide resolved
honeycomb-core/src/twomap.rs Outdated Show resolved Hide resolved
honeycomb-core/src/twomap.rs Outdated Show resolved Hide resolved
@imrn99 imrn99 merged commit 619a7e2 into master Feb 19, 2024
1 check passed
@imrn99 imrn99 deleted the 2-map branch February 19, 2024 07:25
@imrn99 imrn99 mentioned this pull request Feb 19, 2024
3 tasks
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.

2 participants