Skip to content
Snippets Groups Projects
Commit df704769 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Python] Fix DistanceResult::normal

parent 12d7983e
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,9 @@ struct DistanceRequest
{
}
/// \param enable_nearest_points_ enables the nearest points computation.
/// \param rel_err_
/// \param abs_err_
DistanceRequest(bool enable_nearest_points_ = false,
FCL_REAL rel_err_ = 0.0,
FCL_REAL abs_err_ = 0.0) :
......
......@@ -89,7 +89,10 @@ void exposeDistanceAPI ()
class_ <DistanceResult> ("DistanceResult",
doxygen::class_doc<DistanceResult>(), init<>())
.DEF_RW_CLASS_ATTRIB (DistanceResult, min_distance)
.DEF_RW_CLASS_ATTRIB (DistanceResult, normal)
.add_property("normal",
make_getter(&DistanceResult::normal, return_value_policy<return_by_value>()),
make_setter(&DistanceResult::normal, return_value_policy<return_by_value>()),
doxygen::class_attrib_doc<DistanceResult>("normal"))
//.def_readwrite ("nearest_points", &DistanceResult::nearest_points)
.def("getNearestPoint1",&DistanceRequestWrapper::getNearestPoint1,
doxygen::class_attrib_doc<DistanceResult>("nearest_points"))
......
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