-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/gridedit 1548 casulli refinement depths #390
base: master
Are you sure you want to change the base?
Feature/gridedit 1548 casulli refinement depths #390
Conversation
52fde8f
to
c38c831
Compare
|
||
double searchRadiusSquared = 1.0e5; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did this number (1e5) come from?
std::map<int, std::unique_ptr<PropertyCalculator>> allocatePropertyCalculators() | ||
{ | ||
std::map<int, std::unique_ptr<PropertyCalculator>> propertyMap; | ||
|
||
int propertyId = static_cast<int>(meshkernel::Mesh2D::Property::Orthogonality); | ||
propertyMap.emplace(propertyId, std::make_unique<OrthogonalityPropertyCalculator>()); | ||
|
||
propertyId = static_cast<int>(meshkernel::Mesh2D::Property::EdgeLength); | ||
propertyMap.emplace(propertyId, std::make_unique<EdgeLengthPropertyCalculator>()); | ||
|
||
return propertyMap; | ||
} | ||
|
||
/// @brief Map of property calculators, from an property identifier to the calculator. | ||
static std::map<int, std::unique_ptr<PropertyCalculator>> propertyCalculators = allocatePropertyCalculators(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be implemented as a singlton rather than a static global variable
libs/MeshKernel/include/MeshKernel/SampleTriangulationInterpolator.hpp
Outdated
Show resolved
Hide resolved
|
||
/// @brief A simple bounded array | ||
template <const UInt Dimension> | ||
class BoundedArray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the dimension in known at compile time, can we use an std::array ?
{ | ||
m_elementCentreRTree->SearchNearestPoint(pnt); | ||
|
||
if (m_elementCentreRTree->HasQueryResults()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider early returning instead
Added api unit functions and unit test, though the test does not yet work correctly
Added missing file and updated cmake file
…tree in that interpolator
…e centres for triangulation interpolation
and simple unit test
018ba63
to
16ab4cb
Compare
No description provided.