Got the stuff to check those holes in the tape to work properly.

This commit is contained in:
2020-04-07 17:05:39 -04:00
parent b0b228d613
commit 987ae1f129
2 changed files with 12 additions and 40 deletions

View File

@ -139,9 +139,9 @@ namespace OMeshInterface
const double GetGuassianCurvature_Discretely()
{
double result = 2 * PI();
double result = 0;
using FAngleList = vector<float>;
using FAngleList = vector<float >;
using AngleList = vector<double>;
AngleList vertAngleSumList;
@ -150,6 +150,8 @@ namespace OMeshInterface
{
using OutgoingEdgeIter = HE_Mesh::VertexOHalfedgeIter;
double vertResult = 2 * PI();
FAngleList interiorAngles;
double sumOfAngles = 0.0;
@ -165,7 +167,7 @@ namespace OMeshInterface
float angle = oMeshObj.calc_sector_angle(*oEdgeElem);
angle *= PI() / 180.0; // To Radians
//angle *= PI() / 180.0; // To Radians
interiorAngles.push_back(angle);
@ -174,7 +176,9 @@ namespace OMeshInterface
vertAngleSumList.push_back(sumOfAngles);
result -= sumOfAngles;
vertResult -= sumOfAngles;
result += vertResult;
}
return result;