18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 06:14:58 +01:00

chore(editor): Fields: one identifier a statement, contains() for the sets (Sonar cpp:S1659, cpp:S6171)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1Q7wdYkbxDUWscNHZ
This commit is contained in:
Claude
2026-11-12 22:41:31 +01:00
parent 59deddda6b
commit 6da461a976
2 changed files with 5 additions and 3 deletions

View File

@@ -54,13 +54,15 @@ void reach_of(heightmap::surface_patch const &Patch, glm::dvec2 &Low, glm::dvec2
// well: the separate fields left that overlap the closed outline are cut again (a cut leaves the holes there are as they are)
void recut_separate_over(terrain_streamer &Streamer, std::vector<heightmap::surface_patch> const &Patches, heightmap::surface_patch const &Closed)
{
glm::dvec2 low, high;
glm::dvec2 low;
glm::dvec2 high;
Closed.bounds(low, high);
for (auto const &patch : Patches)
{
if (patch.paint || patch.outline.size() < 3)
continue;
glm::dvec2 otherlow, otherhigh;
glm::dvec2 otherlow;
glm::dvec2 otherhigh;
patch.bounds(otherlow, otherhigh);
if (otherlow.x > high.x || otherhigh.x < low.x || otherlow.y > high.y || otherhigh.y < low.y)
continue;