-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Tds struct and add new methods for counting vertices and cells
- Refactored the `Tds` struct in `triangulation_data_structure.rs` to include two new methods: `number_of_vertices()` and `number_of_cells()`. - Updated the existing tests in the module to use these new methods instead of directly accessing the `vertices` and `cells` fields. - Added assertions to verify that the counts returned by these methods are correct. This commit improves code readability and encapsulation by providing dedicated methods for counting vertices and cells in the triangulation data structure.
- Loading branch information
1 parent
7645f34
commit e701d62
Showing
2 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters