Verified Commit ad9eadff authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: tiny refactoring

parent c80a03c6
Pipeline #15410 failed with stage
in 45 minutes and 33 seconds
......@@ -508,9 +508,9 @@ void exposeCollisionObject ()
.def (dv::init<CollisionObject, const CollisionGeometryPtr_t&, const Transform3f&>())
.def (dv::init<CollisionObject, const CollisionGeometryPtr_t&, const Matrix3f&, const Vec3f&>())
.def ("getObjectType", &CollisionObject::getObjectType)
.def ("getNodeType", &CollisionObject::getNodeType)
.def ("computeAABB", &CollisionObject::computeAABB)
.DEF_CLASS_FUNC(CollisionObject, getObjectType)
.DEF_CLASS_FUNC(CollisionObject, getNodeType)
.DEF_CLASS_FUNC(CollisionObject, computeAABB)
.DEF_CLASS_FUNC2(CollisionObject, getAABB, bp::return_value_policy<bp::copy_const_reference>())
.DEF_CLASS_FUNC2(CollisionObject, getTranslation, bp::return_value_policy<bp::copy_const_reference>())
......@@ -524,9 +524,9 @@ void exposeCollisionObject ()
.DEF_CLASS_FUNC(CollisionObject, isIdentityTransform)
.DEF_CLASS_FUNC(CollisionObject, setIdentityTransform)
.def("collisionGeometry",
.def(dv::member_func("collisionGeometry",
static_cast<const CollisionGeometryPtr_t& (CollisionObject::*) ()>(&CollisionObject::collisionGeometry),
bp::return_value_policy<bp::copy_const_reference>())
bp::return_value_policy<bp::copy_const_reference>()))
;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment