mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Improve spell checker using codespell
* Configures automated spell checking with codespell Adds GitHub workflows and configuration files for automated spell checking using `codespell`. This includes: - A workflow for checking pull requests and preventing new typos - A workflow for automatically fixing typos in the main codebase - Configuration files for `codespell` to ignore specific terms and file types - Documentation on how to use and configure the spell checking workflows. * Corrects minor spelling and grammar errors.
This commit is contained in:
@@ -713,7 +713,7 @@ std::vector<cvf::Vec3d> RigCellGeometryTools::ajustPolygonToAvoidIntersectionsAt
|
||||
{
|
||||
std::vector<cvf::Vec3d> adjustedPolygon;
|
||||
|
||||
double treshold = ( 1.0 / 10000.0 ) * 5; // 5 times polygonScaleFactor for converting to int for clipper
|
||||
double threshold = ( 1.0 / 10000.0 ) * 5; // 5 times polygonScaleFactor for converting to int for clipper
|
||||
|
||||
for ( cvf::Vec3d polygonPoint : polygon )
|
||||
{
|
||||
@@ -723,7 +723,7 @@ std::vector<cvf::Vec3d> RigCellGeometryTools::ajustPolygonToAvoidIntersectionsAt
|
||||
cvf::Vec3d linePoint2( polyLine[i + 1].x(), polyLine[i + 1].y(), 0.0 );
|
||||
|
||||
double pointDistanceFromLine = cvf::GeometryTools::linePointSquareDist( linePoint1, linePoint2, polygonPoint );
|
||||
if ( pointDistanceFromLine < treshold )
|
||||
if ( pointDistanceFromLine < threshold )
|
||||
{
|
||||
// calculate new polygonPoint
|
||||
cvf::Vec3d directionOfLineSegment = linePoint2 - linePoint1;
|
||||
|
||||
Reference in New Issue
Block a user