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

This fix for cases where VERTEX and NROMAL share same polylist <p> , see https://github.com/osrf/gazebo/issues/2682#issue-602951524 #2811

Merged
merged 3 commits into from
Aug 11, 2020

Conversation

k-okada
Copy link
Contributor

@k-okada k-okada commented Aug 4, 2020

…ORMAL) * vcount.size() * 3. If both VERTEX and NORMAL have offset 0, then the length of polylist <p> is vcount.size() * 3. So use length of set(offset) as inputSize. This fix for cases where VERTEX and NROMAL share same vcounts, see gazebosim#2682 (comment)
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

changes look good to me! I think we may run into the same issue with triangles here but need to confirm. Other than that I just have minor coding style comments.

Thanks for the contribution.

for (const auto &input : inputs)
inputSize += input.second.size();
std::set<int> total_inputs;
for (const auto &input : inputs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

minor coding style nitpick:

  • total_inputs -> totalInputs
  • bracket { on new line

@@ -28,6 +28,10 @@ class ColladaVisualization : public QTestFixture
/// \brief Test loading a collada mesh that has multiple texture
/// coordinates
private slots: void MultipleTextureCoordinates();

/// \brief Test loading a collada mesh that has multiple inputs
/// with samee offset, see https://github.com/osrf/gazebo/issues/2682
Copy link
Contributor

Choose a reason for hiding this comment

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

samee -> same

<!-- <uri>file://media/materials/scripts/gazebo.material</uri> -->
<!-- <name>Gazebo/Red</name> -->
<!-- </script> -->
<!-- </material> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

can you remove the commented out lines?

@k-okada
Copy link
Contributor Author

k-okada commented Aug 11, 2020 via email

@iche033 iche033 merged commit 12ce44c into gazebosim:gazebo11 Aug 11, 2020
@k-okada
Copy link
Contributor Author

k-okada commented Aug 13, 2020

@iche033 thanks for merge, BTW is it too late to apply this patch to gazebo9 and use them with melodic? Or if I write PR against gazebo9 branch, will you consider that?

@iche033
Copy link
Contributor

iche033 commented Aug 13, 2020

@k-okada sure you can create a PR backporting this fix to the gazebo9 branch and I'll review it, thanks.

@k-okada
Copy link
Contributor Author

k-okada commented Aug 14, 2020

@iche033 created PR for gazebo9 branch #2825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11 Gazebo 11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants