mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
STLGeometry::GetNormal only valid with PointGeomInfo
This commit is contained in:
parent
c24e00f6d4
commit
4d98a6eb8c
@ -102,7 +102,12 @@ int STLGeometry :: GenerateMesh (shared_ptr<Mesh> & mesh, MeshingParameters & mp
|
|||||||
|
|
||||||
Vec<3> STLGeometry :: GetNormal(INDEX surfind, const Point<3> & p) const
|
Vec<3> STLGeometry :: GetNormal(INDEX surfind, const Point<3> & p) const
|
||||||
{
|
{
|
||||||
return GetChartNormalVector();
|
throw Exception("STLGeometry::GetNormal without PointGeomInfo called");
|
||||||
|
}
|
||||||
|
|
||||||
|
Vec<3> STLGeometry :: GetNormal(int surfind, const Point<3> & p, const PointGeomInfo & gi) const
|
||||||
|
{
|
||||||
|
return GetChart(GetChartNr(gi.trignum)).GetNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool STLGeometry :: CalcPointGeomInfo(int /*surfind*/, PointGeomInfo& gi, const Point<3> & p3) const
|
bool STLGeometry :: CalcPointGeomInfo(int /*surfind*/, PointGeomInfo& gi, const Point<3> & p3) const
|
||||||
|
@ -196,6 +196,7 @@ namespace netgen
|
|||||||
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;
|
bool ProjectPointGI (int surfind, Point<3> & p, PointGeomInfo & gi) const override;
|
||||||
Vec<3> GetNormal(int surfind, const 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 PointGeomInfo & gi) const override;
|
||||||
void PointBetween(const Point<3> & p1, const Point<3> & p2,
|
void PointBetween(const Point<3> & p1, const Point<3> & p2,
|
||||||
double secpoint, int surfi,
|
double secpoint, int surfi,
|
||||||
const PointGeomInfo & gi1,
|
const PointGeomInfo & gi1,
|
||||||
|
Loading…
Reference in New Issue
Block a user