mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +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;
|
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,
|
void CSGeometry :: ProjectPointEdge(int surfind, INDEX surfind2,
|
||||||
Point<3> & p) const
|
Point<3> & p) const
|
||||||
{
|
{
|
||||||
|
@ -189,6 +189,7 @@ namespace netgen
|
|||||||
virtual void SaveToMeshFile (ostream & ost) const override;
|
virtual void SaveToMeshFile (ostream & ost) const override;
|
||||||
|
|
||||||
void ProjectPoint(INDEX surfind, Point<3> & p) 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;
|
void ProjectPointEdge(INDEX surfind, INDEX surfind2, Point<3> & p) const override;
|
||||||
Vec<3> GetNormal(int surfind, const 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,
|
void PointBetween(const Point<3> & p1, const Point<3> & p2,
|
||||||
|
@ -156,6 +156,12 @@ namespace netgen
|
|||||||
ar & materials & maxh & quadmeshing & tensormeshing & layer & bcnames & elto0;
|
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,
|
void PointBetween(const Point<3> & p1, const Point<3> & p2, double secpoint,
|
||||||
int surfi,
|
int surfi,
|
||||||
const PointGeomInfo & gi1,
|
const PointGeomInfo & gi1,
|
||||||
|
Loading…
Reference in New Issue
Block a user