Commit 49cc72e9 authored by Martin Schultz's avatar Martin Schultz

added explicit copy constructors for PolyMeshT and TrimeshT to enable...

added explicit copy constructors for PolyMeshT and TrimeshT to enable static_casts of different mesh types
parent 122293b2
......@@ -186,6 +186,8 @@ public:
// --- constructor/destructor
PolyMeshT() {}
template<typename T>
explicit PolyMeshT(const T& t) : Kernel(t) {}
virtual ~PolyMeshT() {}
/** Uses default copy and assignment operator.
......
......@@ -169,6 +169,10 @@ public:
/// Default constructor
TriMeshT() : PolyMesh() {}
explicit TriMeshT(PolyMesh rhs) : PolyMesh((rhs.triangulate(), rhs))
{
}
/// Destructor
virtual ~TriMeshT() {}
......
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