Skip to content

Spatial_Engine: Improve shape profile curve generation - #3657

Open
IsakNaslundBh wants to merge 4 commits into
developfrom
Spatial_Engine-#-ImproveShapePRofileCurveGeneration
Open

IsakNaslundBh wants to merge 4 commits into
developfrom
Spatial_Engine-#-ImproveShapePRofileCurveGeneration

Conversation

@IsakNaslundBh

Copy link
Copy Markdown
Contributor

Issues addressed by this PR

Closes #3655

Improve the generation of section curves for all shape-profiles. Done in place, with no functional change.

This is a first step before #3656 can be tackled (generating these on the fly)

Also adding minor fix for warping constant for mirrored channels

Another minor fix in the WetBlanketInterpetation to only use doubles and not mutate incomping points

Another minor fix to not move profile curves that were already centred.

Test files

Should be able to test with our section checking scripts that check serialised values against computed. Essentially, this PR should not change any functionality, but just improve performance of the section curve generation

Changelog

Additional comments

Drastically improve the performance, especially for curves that where not centered.

Fix some minor bugs, and improve the checking.
The method was mutating the incoming points of the polyline, meaning their x-values where getting rounded. This has been fixed here.
This also skips the decimals being used, as it did not really add any benefit. Makes the code a bit more readable and essentially achieves the same thing.
@IsakNaslundBh IsakNaslundBh self-assigned this Nov 26, 2026
@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spatial_Engine: Improve ShapeProfile curve generation

1 participant