Revert "Automatically select correct chart in MeshOptimizeSTLSurface::GetNormalVector"

This reverts commit d4b376024a.
This commit is contained in:
Matthias Hochsteger 2019-10-08 12:35:58 +02:00
parent d4b376024a
commit ed5ea4408f
2 changed files with 1 additions and 9 deletions

View File

@ -1108,15 +1108,8 @@ 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();
} }

View File

@ -85,8 +85,7 @@ public:
/// ///
virtual int CalcPointGeomInfo(PointGeomInfo& gi, const Point<3> & p3) const; virtual int CalcPointGeomInfo(PointGeomInfo& gi, const Point<3> & p3) const;
/// ///
void GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const override; virtual void GetNormalVector(INDEX surfind, const Point<3> & p, Vec<3> & n) const;
void GetNormalVector(INDEX surfind, const Point<3> & p, PointGeomInfo & gi, Vec<3> & n) const override;
}; };