-
Notifications
You must be signed in to change notification settings - Fork 276
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
Add ModelSDF serializer #851
Conversation
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I'm considering closing this PR in favor of pull request #881. That way all the changes needed for "Scaling" will be contained in the |
The changes here are pretty self-contained and independent of scaling, so I think it's ok to get it into |
Signed-off-by: Carlos Agüero <[email protected]>
std::string sdf(std::istreambuf_iterator<char>(_in), {}); | ||
|
||
sdf::Errors errors = root.LoadSdfString(sdf); | ||
if (!errors.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this check !root.Element()->HasElement("model")
instead? #881 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed! c428d20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also do !root.Model()
Signed-off-by: Carlos Agüero <[email protected]>
* Add ModelSDF serializer. Signed-off-by: Carlos Agüero <[email protected]> Signed-off-by: William Lew <[email protected]>
🎉 New feature
Summary
Adds a serializer to the
ModelSDF
component.Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge