Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
db39da48
Commit
db39da48
authored
Feb 21, 2020
by
Joseph Mirabel
Browse files
[Python] Add doc to MeshLoader.
parent
ffa3c36b
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/fcl.cc
View file @
db39da48
...
...
@@ -46,6 +46,12 @@
#include
<hpp/fcl/collision.h>
#ifdef HAS_DOXYGEN_AUTODOC
#include
"doxygen_autodoc/hpp/fcl/math/transform.h"
#endif
#include
"../doc/python/doxygen.hh"
using
namespace
hpp
::
fcl
;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS
(
load_overloads
,
MeshLoader
::
load
,
1
,
2
)
...
...
@@ -56,17 +62,23 @@ void exposeMeshLoader ()
if
(
!
eigenpy
::
register_symbolic_link_to_registered_type
<
MeshLoader
>
())
{
class_
<
MeshLoader
>
(
"MeshLoader"
,
no_init
)
.
def
(
init
<
optional
<
NODE_TYPE
>
>
(
arg
(
"node_type"
),
"Default constructor"
))
.
def
(
"load"
,(
BVHModelPtr_t
(
MeshLoader
::*
)(
const
std
::
string
&
,
const
Vec3f
&
))
&
MeshLoader
::
load
,
class_
<
MeshLoader
>
(
"MeshLoader"
,
doxygen
::
class_doc
<
MeshLoader
>
(),
init
<
optional
<
NODE_TYPE
>
>
(
arg
(
"node_type"
),
doxygen
::
constructor_doc
<
MeshLoader
,
const
NODE_TYPE
&>
()))
.
def
(
"load"
,
&
MeshLoader
::
load
,
load_overloads
(
args
(
"filename"
,
"scale"
),
"Load a mesh given by its filename"
))
doxygen
::
member_func_doc
(
&
MeshLoader
::
load
)
))
;
}
if
(
!
eigenpy
::
register_symbolic_link_to_registered_type
<
CachedMeshLoader
>
())
{
class_
<
CachedMeshLoader
,
bases
<
MeshLoader
>
>
(
"CachedMeshLoader"
,
init
<
optional
<
NODE_TYPE
>
>
())
class_
<
CachedMeshLoader
,
bases
<
MeshLoader
>
>
(
"CachedMeshLoader"
,
doxygen
::
class_doc
<
MeshLoader
>
(),
init
<
optional
<
NODE_TYPE
>
>
(
arg
(
"node_type"
),
doxygen
::
constructor_doc
<
CachedMeshLoader
,
const
NODE_TYPE
&>
()))
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment