Verified Commit 29e6a7f4 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: move default constructor of BVHModelBase

parent 79b040de
......@@ -95,17 +95,7 @@ public:
}
/// @brief Constructing an empty BVH
BVHModelBase() : vertices(NULL),
tri_indices(NULL),
prev_vertices(NULL),
num_tris(0),
num_vertices(0),
build_state(BVH_BUILD_STATE_EMPTY),
num_tris_allocated(0),
num_vertices_allocated(0),
num_vertex_updated(0)
{
}
BVHModelBase();
/// @brief copy from another BVH
BVHModelBase(const BVHModelBase& other);
......
......@@ -52,6 +52,19 @@ namespace hpp
namespace fcl
{
BVHModelBase::BVHModelBase()
: vertices(NULL)
, tri_indices(NULL)
, prev_vertices(NULL)
, num_tris(0)
, num_vertices(0)
, build_state(BVH_BUILD_STATE_EMPTY)
, num_tris_allocated(0)
, num_vertices_allocated(0)
, num_vertex_updated(0)
{
}
BVHModelBase::BVHModelBase(const BVHModelBase& other) :
CollisionGeometry(other),
num_tris(other.num_tris),
......
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