Define a MeshHandle to simplify some template programming
This commit is contained in:
@@ -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
|
} // namespace OpenMesh
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ struct MPropHandleT : public BasePropHandleT<T>
|
|||||||
{
|
{
|
||||||
typedef T Value;
|
typedef T Value;
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
typedef void Handle;
|
typedef MeshHandle Handle;
|
||||||
|
|
||||||
explicit MPropHandleT(int _idx=-1) : BasePropHandleT<T>(_idx) {}
|
explicit MPropHandleT(int _idx=-1) : BasePropHandleT<T>(_idx) {}
|
||||||
explicit MPropHandleT(const BasePropHandleT<T>& _b) : BasePropHandleT<T>(_b) {}
|
explicit MPropHandleT(const BasePropHandleT<T>& _b) : BasePropHandleT<T>(_b) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user