mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
riTRANXYZ: Paving the way: Renaming, Removing obsolete code, Store fault index for each cell face, Added prototype code for the calculation
This commit is contained in:
@@ -599,7 +599,7 @@ bool EarClipTesselator::calculateTriangles( std::vector<size_t>* triangleIndices
|
||||
|
||||
// We want m_polygonIndices to be a counter-clockwise polygon to make the validation test work
|
||||
|
||||
if (calculatePolygonArea() < 0 )
|
||||
if (calculateProjectedPolygonArea() < 0 )
|
||||
{
|
||||
m_polygonIndices.reverse();
|
||||
}
|
||||
@@ -732,7 +732,7 @@ bool EarClipTesselator::isPointInsideTriangle(const cvf::Vec3d& A, const cvf::Ve
|
||||
/// Computes area of the currently stored 2D polygon/contour
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
double EarClipTesselator::calculatePolygonArea() const
|
||||
double EarClipTesselator::calculateProjectedPolygonArea() const
|
||||
{
|
||||
CVF_ASSERT(m_X > -1 && m_Y > -1);
|
||||
|
||||
@@ -834,7 +834,7 @@ bool FanEarClipTesselator::calculateTriangles(std::vector<size_t>* triangles)
|
||||
|
||||
// We want m_polygonIndices to be a counter-clockwise polygon to make the validation test work
|
||||
|
||||
if (calculatePolygonArea() < 0 )
|
||||
if (calculateProjectedPolygonArea() < 0 )
|
||||
{
|
||||
m_polygonIndices.reverse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user