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

--Renamed GltfMeshData -> GenericMeshData; #617

Merged
merged 2 commits into from
May 5, 2020

Conversation

jturner65
Copy link
Contributor

@jturner65 jturner65 commented May 4, 2020

Motivation and Context

This PR renames the GltfMeshData class to be GenericMeshData, to more accurately reflect this class's applicability to many different mesh formats. A method was added to instance a mesh object by the importer using a string name, in order to support mesh instancing using PrimitiveImporter.

How Has This Been Tested

All existing c++ and python tests

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

GlftMeshData class functionality applies to other types of files, as well as Magnum primtives, and so is more appropriately considered generic mesh data.
@jturner65 jturner65 requested review from mosra and aclegg3 May 4, 2020 16:46
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 4, 2020
src/esp/assets/ResourceManager.h Show resolved Hide resolved
src/esp/assets/GenericMeshData.cpp Show resolved Hide resolved
src/esp/assets/GenericMeshData.cpp Show resolved Hide resolved
src/esp/assets/GenericMeshData.cpp Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 4, 2020

Codecov Report

Merging #617 into master will decrease coverage by 0.06%.
The diff coverage is 58.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #617      +/-   ##
==========================================
- Coverage   58.26%   58.20%   -0.07%     
==========================================
  Files         130      130              
  Lines        5889     5890       +1     
  Branches       84       84              
==========================================
- Hits         3431     3428       -3     
- Misses       2458     2462       +4     
Flag Coverage Δ
#CPP 54.14% <58.33%> (-0.12%) ⬇️
#JavaScript 10.00% <ø> (ø)
#Python 76.33% <ø> (ø)
Impacted Files Coverage Δ
src/esp/assets/BaseMesh.h 0.00% <ø> (ø)
src/esp/assets/GenericMeshData.h 25.00% <0.00%> (ø)
src/esp/assets/ResourceManager.h 100.00% <ø> (ø)
src/esp/core/RigidState.h 100.00% <ø> (ø)
src/esp/assets/GenericMeshData.cpp 78.57% <63.63%> (ø)
src/esp/nav/PathFinder.cpp 83.27% <0.00%> (-0.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cc6f89...34a5a6b. Read the comment docs.

@jturner65 jturner65 requested a review from mosra May 4, 2020 17:53
@jturner65 jturner65 changed the title --Renamed GlftMeshData -> GenericMeshData; --Renamed GltfMeshData -> GenericMeshData; May 4, 2020
@jturner65 jturner65 merged commit 9fa5df4 into facebookresearch:master May 5, 2020
@jturner65 jturner65 deleted the RenameGltfMeshData branch May 5, 2020 16:46
dhruvbatra pushed a commit that referenced this pull request May 13, 2020
* master:
  Interactive RigidObject python tutorial page (#611)
  Update README.md
  Separate Scene And Object functionality into different classes (#628)
  Updated m.css submodule. (#627)
  Update agent state set state to be less confusing (#614)
  Direct Navmesh/Meshdata handling; PluginManager instance variable (#623)
  Documentation generator updates (#624)
  Update corrade submodule. (#618)
  Physics primitives (non-colliding) (#622)
  save_nav_mesh python bindings (#619)
  --Renamed GltfMeshData -> GenericMeshData; (#617)
  Update README.md
  Update README.md
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
* --Renamed GlftMeshData -> GenericMeshData;

GlftMeshData class functionality applies to other types of files, as well as Magnum primtives, and so is more appropriately considered generic mesh data.

* --Address reviewer comments.
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
* master:
  Interactive RigidObject python tutorial page (facebookresearch#611)
  Update README.md
  Separate Scene And Object functionality into different classes (facebookresearch#628)
  Updated m.css submodule. (facebookresearch#627)
  Update agent state set state to be less confusing (facebookresearch#614)
  Direct Navmesh/Meshdata handling; PluginManager instance variable (facebookresearch#623)
  Documentation generator updates (facebookresearch#624)
  Update corrade submodule. (facebookresearch#618)
  Physics primitives (non-colliding) (facebookresearch#622)
  save_nav_mesh python bindings (facebookresearch#619)
  --Renamed GltfMeshData -> GenericMeshData; (facebookresearch#617)
  Update README.md
  Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants