Skip to content
Snippets Groups Projects
Commit 8416ab47 authored by jcarpent's avatar jcarpent
Browse files

[C++] Correct index type

parent 77a2127b
No related branches found
No related tags found
No related merge requests found
......@@ -78,15 +78,15 @@ namespace se3
return geom_names[index];
}
inline void GeometryModel::addInnerObject (const GeomIndex joint, const GeomIndex inner_object)
inline void GeometryModel::addInnerObject (const JointIndex joint_id, const GeomIndex inner_object)
{
if (std::find(innerObjects[joint].begin(), innerObjects[joint].end(),inner_object)==innerObjects[joint].end())
innerObjects[joint].push_back(inner_object);
if (std::find(innerObjects[joint_id].begin(), innerObjects[joint_id].end(),inner_object)==innerObjects[joint_id].end())
innerObjects[joint_id].push_back(inner_object);
else
std::cout << "inner object already added" << std::endl;
}
inline void GeometryModel::addOutterObject (const GeomIndex joint, const GeomIndex outer_object)
inline void GeometryModel::addOutterObject (const JointIndex joint, const GeomIndex outer_object)
{
if (std::find(outerObjects[joint].begin(), outerObjects[joint].end(),outer_object)==outerObjects[joint].end())
outerObjects[joint].push_back(outer_object);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment