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

[SofaLoader] Rename MeshObjLoader to MeshOBJLoader #2428

Merged
merged 12 commits into from
Nov 30, 2021

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented Oct 18, 2021

All loaders/exporters consider the file format in upper-case EXCEPT MeshObjLoader.
When you have stuff like MeshVTKLoader, MeshOBJ, OBJExporter, MeshSTLLoader, ImagePNG, etc
it looks not consistent.

So this PR renames all occurrences of MeshObjLoader to MeshOBJLoader and add an alias with MeshObjLoader to keep the compatibility with the existing scenes.

Otherwise, all the other upper-case should be converted to Xxx but will be much more bothersome that this PR....


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: breaking Change possibly inducing a compilation error pr: status to review To notify reviewers to review this pull-request pr: clean Cleaning the code labels Oct 18, 2021
Copy link
Contributor

@alxbilger alxbilger left a comment

Choose a reason for hiding this comment

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

Of course, I read all the 348 files in details

@fredroy
Copy link
Contributor Author

fredroy commented Oct 19, 2021

[ci-build][with-all-tests]

@epernod
Copy link
Contributor

epernod commented Oct 25, 2021

ObjMeshLoader ? 😆

@hugtalbot hugtalbot added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Nov 3, 2021
@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Nov 4, 2021
@fredroy
Copy link
Contributor Author

fredroy commented Nov 4, 2021

As expected, it is not possible to do a forward file (MeshObjLoader to MeshOBJLoader) for Windows (and Mac) because of the case insensitivity... 🥺

@hugtalbot
Copy link
Contributor

And MeshGmsh, Off, Xsp are next? :trollface:

@fredroy fredroy added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Nov 10, 2021
@fredroy fredroy removed the pr: status wip Development in the pull-request is still in progress label Nov 12, 2021
@fredroy fredroy added the pr: status to review To notify reviewers to review this pull-request label Nov 12, 2021
@guparan guparan added this to the v21.12 milestone Nov 26, 2021
…oader

# Conflicts:
#	applications/plugins/CGALPlugin/scenes/BooleanOperations.scn
#	applications/plugins/CGALPlugin/scenes/FrontSurfaceReconstruction.scn
#	applications/plugins/CGALPlugin/scenes/MeshGenerationFromPolyhedron.scn
#	applications/plugins/CGALPlugin/scenes/PoissonSurfaceReconstruction.scn
#	applications/plugins/CGALPlugin/scenes/UpsamplePointCloud.scn
@guparan guparan merged commit d8c91a0 into sofa-framework:master Nov 30, 2021
@fredroy fredroy deleted the rename_objloader branch April 1, 2022 15:35
@hugtalbot hugtalbot added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels May 13, 2022
bakpaul pushed a commit to bakpaul/sofa that referenced this pull request Feb 23, 2024
All loaders/exporters consider the file format in upper-case EXCEPT MeshObjLoader.
When you have  stuff like MeshVTKLoader, MeshOBJ, OBJExporter, MeshSTLLoader, ImagePNG, etc
it looks not consistent.

So this PR renames all occurrences of MeshObjLoader to MeshOBJLoader and add an alias with `MeshObjLoader` to keep the compatibility with the existing scenes.

Otherwise, all the other upper-case should be converted to Xxx but will be much more bothersome that this PR....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: breaking Change possibly inducing a compilation error pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants