Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenherje committed Mar 8, 2024
1 parent 88e2b5d commit 14d2774
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ cvf::uint PolygonVertexWelder::locateVertexInPolygon( const cvf::Vec3d& vertex )
while ( currentIndex != cvf::UNDEFINED_UINT )
{
// Weld point within tolerance
float distanceSquared = ( m_vertex[currentIndex] - vertex ).lengthSquared();
const auto distanceSquared = ( m_vertex[currentIndex] - vertex ).lengthSquared();
if ( distanceSquared < m_epsilonSquared )
{
return currentIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ void RivPolylineIntersectionGeometryGenerator::calculateArrays( cvf::UByteArray*
if ( !clvx.isVxIdsNative ) clvx.derivedVxLevel = 0;
}

bool tmp = false;
if ( globalCellIdx == 1300 )
{
tmp = true;
}

// Object to for adding triangle vertices, well vertices and generate polygon vertices
RivEnclosingPolygonGenerator enclosingPolygonGenerator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class RivPolylineIntersectionGeometryGenerator
const cvf::Vec3d& endPoint,
const cvf::Vec3d& heightVector,
const double topDepth,
const double bottomDepth );
const double bottomDepth );

static std::vector<cvf::Vec3d> initializePolylineUtmFromPolylineUtmXy( const std::vector<cvf::Vec2d>& polylineUtmXy );

Expand Down

0 comments on commit 14d2774

Please sign in to comment.