added explicit copy constructors for PolyMeshT and TrimeshT to enable static_casts of different mesh types

This commit is contained in:
Martin Schultz
2016-12-08 18:18:59 +01:00
parent 122293b2c0
commit 49cc72e9d2
2 changed files with 6 additions and 0 deletions

View File

@@ -169,6 +169,10 @@ public:
/// Default constructor
TriMeshT() : PolyMesh() {}
explicit TriMeshT(PolyMesh rhs) : PolyMesh((rhs.triangulate(), rhs))
{
}
/// Destructor
virtual ~TriMeshT() {}