Skip to content

Commit

Permalink
GRIDEDIT-759 Fixed windows build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSenior committed Jun 26, 2024
1 parent 93f6f8f commit cc59e44
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/MeshKernel/include/MeshKernel/Polygon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace meshkernel
/// The refined nodes are placed at equally spaced intervals for each polygon segment.
/// The spacing of the refined nodes may differ between polygon segments.
/// @return The points for the refined polygon
std::vector<Point> Refine(size_t startIndex, size_t endIndex, double refinementDistance) const;
std::vector<Point> Refine(UInt startIndex, UInt endIndex, double refinementDistance) const;

/// @brief Refine the polygon
/// @return The points for the refined polygon
Expand Down
4 changes: 2 additions & 2 deletions libs/MeshKernel/include/MeshKernel/PolygonalEnclosure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ namespace meshkernel
/// @param [in] endIndex The end index of the sections to be refined
/// @param [in] refinementDistance The maximum distance between points.
/// @returns Points making the polygon with the sections indicated refined.
std::vector<Point> Refine(size_t startIndex, size_t endIndex, double refinementDistance) const;
std::vector<Point> Refine(UInt startIndex, UInt endIndex, double refinementDistance) const;

/// @brief Linear refine the outer polygon.
/// @param [in] startIndex The start index of the sections to be refined
/// @param [in] endIndex The end index of the sections to be refined
/// @returns Points making the polygon with the sections indicated refined.
std::vector<Point> LinearRefine(size_t startIndex, size_t endIndex) const;
std::vector<Point> LinearRefine(UInt startIndex, UInt endIndex) const;

/// @brief Makes a new polygonal enclosure from an existing one, by offsetting it by a distance (copypol)
/// @param[in] distance The offset distance
Expand Down
2 changes: 1 addition & 1 deletion libs/MeshKernel/src/Polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ meshkernel::Point meshkernel::Polygon::interpolatePointOnPolyline(const std::vec
return (1.0 - ti) * points[intervalIndex - 1] + ti * points[intervalIndex];
}

std::vector<meshkernel::Point> meshkernel::Polygon::Refine(const size_t startIndex, const size_t endIndex, const double refinementDistance) const
std::vector<meshkernel::Point> meshkernel::Polygon::Refine(const UInt startIndex, const UInt endIndex, const double refinementDistance) const
{
if (startIndex == endIndex)
{
Expand Down
4 changes: 2 additions & 2 deletions libs/MeshKernel/src/PolygonalEnclosure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void meshkernel::PolygonalEnclosure::SnapToLandBoundary(size_t startIndex, size_
m_outer.SnapToLandBoundary(startIndex, endIndex, landBoundary);
}

std::vector<meshkernel::Point> meshkernel::PolygonalEnclosure::Refine(size_t startIndex, size_t endIndex, double refinementDistance) const
std::vector<meshkernel::Point> meshkernel::PolygonalEnclosure::Refine(UInt startIndex, UInt endIndex, double refinementDistance) const
{
if (endIndex >= m_outer.Size())
{
Expand All @@ -164,7 +164,7 @@ std::vector<meshkernel::Point> meshkernel::PolygonalEnclosure::Refine(size_t sta
return m_outer.Refine(startIndex, endIndex, refinementDistance);
}

std::vector<meshkernel::Point> meshkernel::PolygonalEnclosure::LinearRefine(size_t startIndex, size_t endIndex) const
std::vector<meshkernel::Point> meshkernel::PolygonalEnclosure::LinearRefine(UInt startIndex, UInt endIndex) const
{
if (endIndex >= m_outer.Size())
{
Expand Down

0 comments on commit cc59e44

Please sign in to comment.