Verified Commit 97cefeeb authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix naming

parent 17b82d32
Pipeline #16062 passed with stage
in 25 minutes and 48 seconds
......@@ -82,7 +82,7 @@ struct BVHModelBaseWrapper
typedef Eigen::Map<RowMatrixX3> MapRowMatrixX3;
typedef Eigen::Ref<RowMatrixX3> RefRowMatrixX3;
static Vec3f & vertice (BVHModelBase & bvh, int i)
static Vec3f & vertex (BVHModelBase & bvh, int i)
{
if (i >= bvh.num_vertices) throw std::out_of_range("index is out of range");
return bvh.vertices[i];
......@@ -471,10 +471,10 @@ void exposeCollisionGeometries ()
class_ <BVHModelBase, bases<CollisionGeometry>, BVHModelPtr_t, noncopyable>
("BVHModelBase", no_init)
.def ("vertice", &BVHModelBaseWrapper::vertice,
.def ("vertex", &BVHModelBaseWrapper::vertex,
bp::args("self","index"),"Retrieve the vertex given by its index.",
bp::return_internal_reference<>())
.def ("vertices", &BVHModelBaseWrapper::vertice,
.def ("vertices", &BVHModelBaseWrapper::vertex,
bp::args("self","index"),"Retrieve the vertex given by its index.",
bp::return_internal_reference<>())
.def ("vertices", &BVHModelBaseWrapper::vertices,
......
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