Skip to content

Material toelement#775

Merged
nkoenig merged 5 commits intosdf12from
material_toelement
Dec 8, 2021
Merged

Material toelement#775
nkoenig merged 5 commits intosdf12from
material_toelement

Conversation

@nkoenig
Copy link
Copy Markdown
Contributor

@nkoenig nkoenig commented Dec 7, 2021

🎉 New feature

Summary

ToElement for Material.

Test it

Run the tests.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Nate Koenig added 2 commits December 7, 2021 11:48
@github-actions github-actions bot added 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress labels Dec 7, 2021
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Copy link
Copy Markdown
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.

looks good to me, just some Windows warnings.

material.SetAmbient(ignition::math::Color(0.1, 0.2, 0.3, 1));
material.SetDiffuse(ignition::math::Color(0.4, 0.5, 0.6, 0.5));
material.SetSpecular(ignition::math::Color(0.6, 0.4, 0.8, 0.8));
material.SetEmissive(ignition::math::Color(0.2, 0.7, 0.9, 0.1));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

windows warnings for the above 4 lines:

'argument': truncation from 'double' to 'const float'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 41a620a

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 8, 2021

Codecov Report

Merging #775 (e766903) into sdf12 (520b74f) will decrease coverage by 0.02%.
The diff coverage is 84.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##            sdf12     #775      +/-   ##
==========================================
- Coverage   89.33%   89.30%   -0.03%     
==========================================
  Files          76       76              
  Lines       12185    12258      +73     
==========================================
+ Hits        10885    10947      +62     
- Misses       1300     1311      +11     
Impacted Files Coverage Δ
src/Material.cc 93.71% <84.93%> (-4.79%) ⬇️

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 520b74f...e766903. Read the comment docs.

@nkoenig nkoenig enabled auto-merge (squash) December 8, 2021 00:51
@nkoenig nkoenig merged commit 8de1eb6 into sdf12 Dec 8, 2021
@nkoenig nkoenig deleted the material_toelement branch December 8, 2021 01:02
@osrf-triage
Copy link
Copy Markdown

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏯 fortress Ignition Fortress 🌱 garden Ignition Garden

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants