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

[SofaBase] Package SofaBaseCollision #1653

Merged
merged 9 commits into from
Dec 17, 2020

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented Dec 8, 2020

#1633

  • Usual cleaning (pragma, namespaces)
  • remove/reorganize useless includes
  • remove MechanicalObject header-dependency (not reflecting with library linking)
  • use only RGBAColor
  • remove warnings

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: status wip Development in the pull-request is still in progress pr: clean Cleaning the code NG2: pluginization See https://github.com/sofa-framework/sofa/issues/1527 labels Dec 8, 2020
@fredroy
Copy link
Contributor Author

fredroy commented Dec 8, 2020

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

@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 Dec 9, 2020
@fredroy fredroy force-pushed the modularize_base_collision branch from 387e4e5 to 7cac067 Compare December 13, 2020 23:48
@fredroy fredroy force-pushed the modularize_base_collision branch from 7cac067 to 3be530a Compare December 17, 2020 12:23
@@ -184,12 +176,7 @@ void CubeCollisionModel::draw(const core::visual::VisualParams* vparams)
++level;
color *= 0.8f;
}
Vec<4,float> c;
if (isSimulated())
c=Vec<4,float>(1.0f, 1.0f, 1.0f, color);
Copy link
Contributor

Choose a reason for hiding this comment

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

if it is like TriangleModel, I think simulated is "gold" and not is white

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was not sure but I went for the lazy way :p

@@ -42,13 +36,7 @@ int RigidCylinderCollisionModelClass = core::RegisterObject("Collision model whi
.addAlias("CylinderModel")
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't even know we had that in SOFA ....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😙

@@ -52,20 +45,12 @@ class SOFA_BASE_COLLISION_API NewProximityIntersection : public BaseProximityInt

};

} // namespace collision
} // namespace sofa::core::collision
Copy link
Contributor

Choose a reason for hiding this comment

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

sofa::component::collision no sofa::core

yes... I'm really reading!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right.
(And i dont doubt about it, with your remarks on end of line or spaces 😙)


#include <SofaBase/config.h>
#include <sofa/config.h>
#include <sofa/config/sharedlibrary_defines.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this header?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one ?
#include <sofa/config/sharedlibrary_defines.h>
It defines the macros SOFA_EXPORT_DYNAMIC_LIBRARY and SOFA_IMPORT_DYNAMIC_LIBRARY

@epernod epernod merged commit 6ad692b into sofa-framework:master Dec 17, 2020
@fredroy fredroy deleted the modularize_base_collision branch December 18, 2020 09:17
@fredroy fredroy 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 Dec 18, 2020
fredroy added a commit that referenced this pull request Dec 21, 2020
* cmake setup

* cleaning

* Fix compilation (coming from the removal of the inclusion of MechanicalObject)

* clean headers

* remove warnings

* use rgbacolor

* add component change

* Update NewProximityIntersection.h

* replace color for CubeModel
@guparan guparan added this to the v20.12 milestone Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NG2: pluginization See https://github.com/sofa-framework/sofa/issues/1527 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.

3 participants