Commit ab353c8d authored by Max Lyon's avatar Max Lyon
Browse files

Define a MeshHandle to simplify some template programming

parent 3d1ae7d7
......@@ -144,6 +144,15 @@ struct FaceHandle : public BaseHandle
};
/// Handle type for meshes to simplify some template programming
struct MeshHandle : public BaseHandle
{
explicit MeshHandle(int _idx=-1) : BaseHandle(_idx) {}
};
//=============================================================================
} // namespace OpenMesh
//=============================================================================
......
......@@ -545,7 +545,7 @@ struct MPropHandleT : public BasePropHandleT<T>
{
typedef T Value;
typedef T value_type;
typedef void Handle;
typedef MeshHandle Handle;
explicit MPropHandleT(int _idx=-1) : BasePropHandleT<T>(_idx) {}
explicit MPropHandleT(const BasePropHandleT<T>& _b) : BasePropHandleT<T>(_b) {}
......
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