Skip to content

Line extrusion as cylinders#2803

Open
Neptilo wants to merge 6 commits into
iTowns:masterfrom
Neptilo:line-extrusion
Open

Line extrusion as cylinders#2803
Neptilo wants to merge 6 commits into
iTowns:masterfrom
Neptilo:line-extrusion

Conversation

@Neptilo

@Neptilo Neptilo commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Extrude line GIS data in 3D using a diameter value to generate cylindrical geometry. Intended for utilities and linear infrastructures where physical thickness matters.

Motivation and Context

Add support for defining a diameter for lines in the 3D view, useful to model pipes for example.
Implements #2627
Tested on Ubuntu, Firefox.

Screenshots

image

@Neptilo Neptilo requested a review from HoloTheDrunk June 29, 2026 13:14
@Neptilo

Neptilo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Performance tests

Average durations of calls to Feature2Mesh.featureToExtrudedLine, on the bus lines dataset in source_stream_wfs_3d:

Comparison with/without round caps at line ends - 40 function calls each:

  • With flat ends: 334.5 ms
  • With round ends: 346.5 ms
  • The duration increases by 2 % to 7 % when switching from flat ends to round ends, averaging a 4.5 % increase.

Comparison with visible/invisible globe layer - 60 function calls each:

  • Visible: 327 ms
  • Invisible: 333 ms

So no significant difference.

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.

1 participant