mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
ProjectPointGI for CSG and 2D geometries
This commit is contained in:
parent
e400c10f07
commit
082908a5ec
@ -79,6 +79,12 @@ namespace netgen
|
||||
p = hp;
|
||||
}
|
||||
|
||||
bool CSGeometry :: ProjectPointGI(int surfind, Point<3> & p, PointGeomInfo & gi) const
|
||||
{
|
||||
GetSurface(surfind)->Project (p);
|
||||
return true;
|
||||
}
|
||||
|
||||
void CSGeometry :: ProjectPointEdge(int surfind, INDEX surfind2,
|
||||
Point<3> & p) const
|
||||
{
|
||||
|
@ -189,6 +189,7 @@ namespace netgen
|
||||
virtual void SaveToMeshFile (ostream & ost) const override;
|
||||
|
||||
void ProjectPoint(INDEX surfind, Point<3> & p) const override;
|
||||
bool ProjectPointGI (int surfind, Point<3> & p, PointGeomInfo & gi) const override;
|
||||
void ProjectPointEdge(INDEX surfind, INDEX surfind2, Point<3> & p) const override;
|
||||
Vec<3> GetNormal(int surfind, const Point<3> & p) const override;
|
||||
void PointBetween(const Point<3> & p1, const Point<3> & p2,
|
||||
|
@ -156,6 +156,12 @@ namespace netgen
|
||||
ar & materials & maxh & quadmeshing & tensormeshing & layer & bcnames & elto0;
|
||||
}
|
||||
|
||||
bool ProjectPointGI (int surfind, Point<3> & p, PointGeomInfo & gi) const override
|
||||
{
|
||||
p(2) = 0.0;
|
||||
return true;
|
||||
}
|
||||
|
||||
void PointBetween(const Point<3> & p1, const Point<3> & p2, double secpoint,
|
||||
int surfi,
|
||||
const PointGeomInfo & gi1,
|
||||
|
Loading…
Reference in New Issue
Block a user