Skip to content

Feature/add nurbscurve gui control points (Request in QGIS) #10692

@qgis-bot

Description

@qgis-bot

Request for documentation

From pull request qgis/QGIS#64611
Author: @lbartoletti
QGIS version: 4.0

Feature/add nurbscurve gui control points

PR Description:

Description

This PR introduces GUI support for digitizing NURBS curves using control points.

While other methods (like PolyBezier) are common in graphic design, the control point approach was selected for this initial implementation as it integrates most naturally into the existing QGIS digitizing framework. (Note: PolyBezier support is planned for a separate PR).

Beyond the new NURBS-specific logic, changes to the existing codebase are restricted to minor conditional checks and small adaptations to accommodate the new technique.
For the UI: A new widget has been added to the digitizing toolbar, modeled after the existing "Stream Digitizing" and incorporating feedback from early user testing.

I've added a static method QgsNurbsCurve::generateUniformKnots to the Core library.

For the "weight," I've added some enhancements in QgsMapToolsCapture to support a requested "click-click" workflow.

nurbs_controlpoint_w_floater.mp4
nurbs_controlpoint_w.mp4

Sponsored by Stadt Frankfurt am Main and Oslandia

Commits tagged with [need-docs] or [FEATURE]

Metadata

Metadata

Assignees

Labels

4.0QGIS 4.0 new featuresGUINeeds to be listed as new menu entry or interaction with main dialog

Type

No type

Projects

Status

In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions