mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
Automatically select correct chart in MeshOptimizeSTLSurface::GetNormalVector
This commit is contained in:
parent
cedc0657a3
commit
d4b376024a
@ -1108,8 +1108,15 @@ int MeshOptimizeSTLSurface :: CalcPointGeomInfo(PointGeomInfo& gi, const Point<
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MeshOptimizeSTLSurface :: GetNormalVector(INDEX surfind, const Point<3> & p, PointGeomInfo & gi, Vec<3> & n) const;
|
||||||
|
{
|
||||||
|
throw Exception("MeshOptimizeSTLSurface :: GetNormalVector without PointGeomInfo called");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void MeshOptimizeSTLSurface :: GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const
|
void MeshOptimizeSTLSurface :: GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const
|
||||||
{
|
{
|
||||||
|
geom.SelectChartOfTriangle (gi.trignum)
|
||||||
n = geom.GetChartNormalVector();
|
n = geom.GetChartNormalVector();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,8 @@ public:
|
|||||||
///
|
///
|
||||||
virtual int CalcPointGeomInfo(PointGeomInfo& gi, const Point<3> & p3) const;
|
virtual int CalcPointGeomInfo(PointGeomInfo& gi, const Point<3> & p3) const;
|
||||||
///
|
///
|
||||||
virtual void GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const;
|
void GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const override;
|
||||||
|
void GetNormalVector(INDEX surfind, const Point<3> & p, PointGeomInfo & gi, Vec<3> & n) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user