Skip to content

Add compressor functionality to the tessellator - #68

Merged
lmdiazangulo merged 20 commits into
devfrom
adds-compressor
Jul 21, 2026
Merged

Add compressor functionality to the tessellator#68
lmdiazangulo merged 20 commits into
devfrom
adds-compressor

Conversation

@lmdiazangulo

Copy link
Copy Markdown
Contributor
  • Implemented Compressor class for merging coplanar quad surfaces.
  • Updated StaircaseMesher to include compression option.
  • Enhanced launcher to read compression settings from JSON input.
  • Added tests for Compressor functionality.

@lmdiazangulo

Copy link
Copy Markdown
Contributor Author

@copilot fix this so the actions pass

Copilot AI commented May 16, 2026

Copy link
Copy Markdown

@copilot fix this so the actions pass

Addressed in 1742a94 (plus f95e55f): I updated the CI workflow to disable the vcpkg GHA binary source during configure/build and added explicit minimal GITHUB_TOKEN permissions (contents: read) so the Actions security check also passes.

@lmdiazangulo lmdiazangulo changed the title Add compressor functionality to the tessellator [WIP] Add compressor functionality to the tessellator May 16, 2026
@lmdiazangulo
lmdiazangulo marked this pull request as draft May 16, 2026 11:00
@lmdiazangulo

Copy link
Copy Markdown
Contributor Author

@copilot can you check what is wrong with the failing action and fix it?

Copilot AI commented May 17, 2026

Copy link
Copy Markdown

@copilot can you check what is wrong with the failing action and fix it?

Fixed in b3b9b63. The failure was a transient vcpkg dependency download error on Windows (status code 502 while fetching Boost). I added retries to the configure step (Windows and Ubuntu) so transient download/network issues don’t fail the whole action immediately.

@lmdiazangulo lmdiazangulo changed the title [WIP] Add compressor functionality to the tessellator Add compressor functionality to the tessellator May 18, 2026
@lmdiazangulo
lmdiazangulo marked this pull request as ready for review May 18, 2026 08:37
Comment thread .vscode/launch.json Outdated
Comment thread src/app/launcher.cpp
Comment thread test/core/CompressorTest.cpp Outdated
Comment thread test/core/CompressorTest.cpp
Comment thread test/core/CompressorTest.cpp Outdated
Comment thread src/core/Splitter.cpp Outdated
Comment thread src/core/Splitter.cpp Outdated
Comment thread src/core/Compressor.cpp Outdated
Comment thread src/core/Compressor.cpp
Comment thread src/meshers/StaircaseMesher.cpp Outdated
@carlosgonzalez-elemwave

Copy link
Copy Markdown
Collaborator

The cmake conditions that relied on VTK_FOUND had the problem of not importing their respective tests. Adding that it also prevented lots of otherwise perfectly runnable tests to be run independently, I refactored the workflow to use global pre-compiled flags.

The new flag APP_LOADED is only true if the application code has been successfully configured, and can be accessed anywhere in the project without any #includes. Tests that require to load a file or use the launcher now compile independently if the flag is true, allowing all other tests to run even if the application has not been compiled.

@carlosgonzalez-elemwave

Copy link
Copy Markdown
Collaborator

I have deleted the Splitter class. It has several fundamental errors and it's not used outside of compressor tests. If a necessity for a splitter comes around, it can be recovered from these commits and fix, or make it from scratch.

@carlosgonzalez-elemwave
carlosgonzalez-elemwave force-pushed the adds-compressor branch 3 times, most recently from 4e467d3 to 265f698 Compare July 20, 2026 07:25
- Implemented Compressor class for merging coplanar quad surfaces.
- Updated StaircaseMesher to include compression option.
- Enhanced launcher to read compression settings from JSON input.
- Added tests for Compressor functionality.
- Add groups initialization check in addQuad() helper to prevent segfault
- Fix compressSurfaces() to properly remove merged elements
- Update test expectations for merged return value
@carlosgonzalez-elemwave
carlosgonzalez-elemwave marked this pull request as ready for review July 20, 2026 14:10
@lmdiazangulo
lmdiazangulo merged commit f2a45f4 into dev Jul 21, 2026
4 checks passed
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.

3 participants