Verified Commit c2bea4e4 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: expose computeMemoryFootprint

parent 4684a156
Pipeline #14684 failed with stage
in 44 minutes and 2 seconds
//
// Software License Agreement (BSD License)
//
// Copyright (c) 2019-2020 CNRS-LAAS INRIA
// Copyright (c) 2019-2021 CNRS-LAAS INRIA
// Author: Joseph Mirabel
// All rights reserved.
//
......@@ -156,6 +156,29 @@ struct ConvexWrapper
}
};
template<typename T>
void defComputeMemoryFootprint()
{
doxygen::def("computeMemoryFootprint",&computeMemoryFootprint<T>);
}
void exposeComputeMemoryFootprint()
{
defComputeMemoryFootprint<Sphere>();
defComputeMemoryFootprint<Cone>();
defComputeMemoryFootprint<Capsule>();
defComputeMemoryFootprint<Cylinder>();
defComputeMemoryFootprint<Box>();
defComputeMemoryFootprint<Plane>();
defComputeMemoryFootprint<Halfspace>();
defComputeMemoryFootprint<TriangleP>();
defComputeMemoryFootprint< BVHModel<OBB> >();
defComputeMemoryFootprint< BVHModel<RSS> >();
defComputeMemoryFootprint< BVHModel<OBBRSS> >();
}
void exposeShapes ()
{
class_ <ShapeBase, bases<CollisionGeometry>, shared_ptr<ShapeBase>, noncopyable>
......@@ -470,6 +493,7 @@ void exposeCollisionGeometries ()
;
exposeBVHModel<OBB >("OBB" );
exposeBVHModel<OBBRSS >("OBBRSS" );
exposeComputeMemoryFootprint();
}
void exposeCollisionObject ()
......
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