mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
check for infinite shape
This commit is contained in:
parent
4f0b15ef55
commit
b959676534
@ -669,9 +669,15 @@ namespace netgen
|
||||
BRepMesh_IncrementalMesh (geom.shape, 0.01, true);
|
||||
triangulation = BRep_Tool::Triangulation (face, loc);
|
||||
}
|
||||
|
||||
if(triangulation.IsNull())
|
||||
throw Exception("OCC-Triangulation could not be built. Do you have a bounded shape?");
|
||||
|
||||
{
|
||||
if (geom.shape.Infinite())
|
||||
throw Exception("Cannot generate mesh for an infinite geometry");
|
||||
else
|
||||
throw Exception("OCC-Triangulation could not be built");
|
||||
}
|
||||
|
||||
BRepAdaptor_Surface sf(face, Standard_True);
|
||||
// one prop for evaluating and one for derivatives
|
||||
BRepLProp_SLProps prop(sf, 0, 1e-5);
|
||||
|
Loading…
Reference in New Issue
Block a user