Replacing Array class with another Array class

This commit is contained in:
Mark Berrill
2015-04-22 14:23:55 -04:00
parent d33c1abd71
commit ef25839769
28 changed files with 1099 additions and 1050 deletions

View File

@@ -399,12 +399,13 @@ std::vector<MeshDatabase> read( const std::string& filename )
// Return the mesh type
IO::MeshType meshType( shared_ptr<IO::Mesh> mesh )
IO::MeshType meshType( std::shared_ptr<IO::Mesh> mesh )
{
IO::MeshType type = IO::Unknown;
if ( dynamic_pointer_cast<IO::PointList>(mesh).get()!=NULL ) {
if ( std::dynamic_pointer_cast<IO::PointList>(mesh).get()!=NULL ) {
type = IO::PointMesh;
} else if ( dynamic_pointer_cast<IO::TriList>(mesh).get()!=NULL || dynamic_pointer_cast<IO::TriMesh>(mesh).get()!=NULL ) {
} else if ( std::dynamic_pointer_cast<IO::TriList>(mesh).get()!=NULL ||
std::dynamic_pointer_cast<IO::TriMesh>(mesh).get()!=NULL ) {
type = IO::SurfaceMesh;
} else {
ERROR("Unknown mesh");