Adding test for blob identification. Adding visit capabilities for domain and volume variables

This commit is contained in:
Mark Berrill
2015-06-11 15:01:24 -04:00
parent db1650ea5d
commit 5fc08ce163
18 changed files with 558 additions and 60 deletions

View File

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