Replacing Array class with another Array class
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user