Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ringmesh/mesh/line_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace RINGMesh
MeshType new_type = type;
if( new_type.empty() )
{
if( !PointSetMeshFactory< DIMENSION >::has_creator(
if( !LineMeshFactory< DIMENSION >::has_creator(
"GeogramPointSetMesh" ) )
{
throw RINGMeshException(
Expand Down
28 changes: 0 additions & 28 deletions src/ringmesh/mesh/point_set_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,34 +86,6 @@ namespace RINGMesh
return std::make_tuple( nb_compoments, components );
}

template < index_t DIMENSION >
std::unique_ptr< LineMesh< DIMENSION > > LineMesh< DIMENSION >::create_mesh(
const MeshType type )
{
MeshType new_type = type;
if( new_type.empty() )
{
if( !PointSetMeshFactory< DIMENSION >::has_creator(
"GeogramPointSetMesh" ) )
{
throw RINGMeshException(
"LineMesh", "Default mesh data structure not registered" );
}
return create_mesh( "GeogramLineMesh" );
}
auto mesh = LineMeshFactory< DIMENSION >::create( new_type );
if( !mesh )
{
Logger::warn( "LineMesh",
"Could not create mesh data structure: ", new_type );
Logger::warn(
"LineMesh", "Falling back to GeogramLineMesh data structure" );

return create_mesh();
}
return mesh;
}

template class mesh_api PointSetMesh< 2 >;
template class mesh_api PointSetMesh< 3 >;
} // namespace RINGMesh
2 changes: 1 addition & 1 deletion src/ringmesh/mesh/surface_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace RINGMesh
MeshType new_type = type;
if( new_type.empty() )
{
if( !PointSetMeshFactory< DIMENSION >::has_creator(
if( !SurfaceMeshFactory< DIMENSION >::has_creator(
"GeogramPointSetMesh" ) )
{
throw RINGMeshException( "SurfaceMesh",
Expand Down
2 changes: 1 addition & 1 deletion src/ringmesh/mesh/volume_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace RINGMesh
auto new_type = type;
if( new_type.empty() )
{
if( !PointSetMeshFactory< DIMENSION >::has_creator(
if( !VolumeMeshFactory< DIMENSION >::has_creator(
"GeogramPointSetMesh" ) )
{
throw RINGMeshException( "VolumeMesh",
Expand Down