Unverified Commit a62df978 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #236 from jcarpent/devel

Extend Python bindings
parents 7ecce30e 53e2c94a
Pipeline #15412 failed with stage
in 34 minutes and 38 seconds
Subproject commit 094834088ad9de32f1abdc2d56d29bca2190772c
Subproject commit 0adbf0109cf2cb4b19db9b71cce37131c17b1597
......@@ -508,9 +508,10 @@ 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>())
.DEF_CLASS_FUNC(CollisionObject, setTranslation)
......@@ -523,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