Skip to content

240 fix connect layers - #241

Open
KentropDevelopment wants to merge 2 commits into
Deltares:masterfrom
KentropDevelopment:240-fix-connect-layers
Open

240 fix connect layers#241
KentropDevelopment wants to merge 2 commits into
Deltares:masterfrom
KentropDevelopment:240-fix-connect-layers

Conversation

@KentropDevelopment

@KentropDevelopment KentropDevelopment commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

Fixes #240

I realise that this method is less fast than the previous one. The original takes a union of to linestrings and polygonises the result. The current method loops through all line parts of adjacent polygons to find the line piece to add the point to. It however only does that for points that should be added (side note: or points which are within tolerance distance of an existing vertex). So if the user adds most of the points then the performance shouldn't be an issue. Though this might affect calculation times doing probabilistic analysis like MC(IS) a bit, if this is not taken into account.

Now that I am writing this, maybe a two-step method combining the former and the current method would solve this. First try the fast method, if it fails, take the brute-force method.

Like to hear your opinion.

@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2025

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug DStabilityModel connect_layers

1 participant