mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Throw Exception if ProjectPointGI is not implemented
This commit is contained in:
parent
22a894b8cf
commit
eaf2bee9e6
@ -51,9 +51,9 @@ namespace netgen
|
||||
virtual bool CalcPointGeomInfo(int surfind, PointGeomInfo& gi, const Point<3> & p3) const {return false;}
|
||||
virtual bool ProjectPointGI (int surfind, Point<3> & p, PointGeomInfo & gi) const
|
||||
{
|
||||
ProjectPoint(surfind, p);
|
||||
return CalcPointGeomInfo(surfind, gi, p);
|
||||
throw Exception("ProjectPointGI not overloaded in class" + Demangle(typeid(*this).name()));
|
||||
}
|
||||
|
||||
virtual Vec<3> GetNormal(int surfind, const Point<3> & p) const
|
||||
{ return {0.,0.,1.}; }
|
||||
virtual Vec<3> GetNormal(int surfind, const Point<3> & p, const PointGeomInfo & gi) const
|
||||
|
Loading…
Reference in New Issue
Block a user