Verified Commit 3a0cdbbc authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix call to constructor

parent bbd52779
......@@ -66,6 +66,8 @@ using namespace boost::python;
using namespace hpp::fcl;
namespace dv = doxygen::visitor;
struct DistanceRequestWrapper
{
static Vec3f getNearestPoint1(const DistanceResult & res) { return res.nearest_points[0]; }
......@@ -92,7 +94,8 @@ void exposeDistanceAPI ()
{
class_ <DistanceResult> ("DistanceResult",
doxygen::class_doc<DistanceResult>(),
init<>(arg("self"),"Default constructor"))
no_init)
.def (dv::init<DistanceResult>())
.DEF_RW_CLASS_ATTRIB (DistanceResult, min_distance)
.DEF_RW_CLASS_ATTRIB(DistanceResult, normal)
//.def_readwrite ("nearest_points", &DistanceResult::nearest_points)
......
Supports Markdown
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