mirror of
https://github.com/Ed94/DuctTaped_GL.git
synced 2025-07-01 09:21:02 -07:00
Got the stuff to check those holes in the tape to work properly.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user