added explicit copy constructors for PolyMeshT and TrimeshT to enable static_casts of different mesh types
This commit is contained in:
@@ -186,6 +186,8 @@ public:
|
|||||||
|
|
||||||
// --- constructor/destructor
|
// --- constructor/destructor
|
||||||
PolyMeshT() {}
|
PolyMeshT() {}
|
||||||
|
template<typename T>
|
||||||
|
explicit PolyMeshT(const T& t) : Kernel(t) {}
|
||||||
virtual ~PolyMeshT() {}
|
virtual ~PolyMeshT() {}
|
||||||
|
|
||||||
/** Uses default copy and assignment operator.
|
/** Uses default copy and assignment operator.
|
||||||
|
|||||||
@@ -169,6 +169,10 @@ public:
|
|||||||
|
|
||||||
/// Default constructor
|
/// Default constructor
|
||||||
TriMeshT() : PolyMesh() {}
|
TriMeshT() : PolyMesh() {}
|
||||||
|
explicit TriMeshT(PolyMesh rhs) : PolyMesh((rhs.triangulate(), rhs))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// Destructor
|
/// Destructor
|
||||||
virtual ~TriMeshT() {}
|
virtual ~TriMeshT() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user