Class: QgsNurbsUtils

Utility functions for working with NURBS curves.

Added in version 4.0.

List of all members, including inherited members

Methods

extractNurbsCurve

Extracts the first NURBS curve found in the geom (recursively).

Static Methods

containsNurbsCurve

Returns True if the geom contains a NURBS curve (recursively).

findNurbsCurveForVertex

Finds the NURBS curve containing the vertex identified by vid.

class qgis.core.QgsNurbsUtils[source]

Bases: object

static containsNurbsCurve(geom: QgsAbstractGeometry | None) bool[source]

Returns True if the geom contains a NURBS curve (recursively).

Parameters:

geom (Optional[QgsAbstractGeometry])

Return type:

bool

extractNurbsCurve(geom: QgsAbstractGeometry | None) QgsNurbsCurve | None[source]

Extracts the first NURBS curve found in the geom (recursively). Returns None if no NURBS curve is found.

Parameters:

geom (Optional[QgsAbstractGeometry])

Return type:

Optional[QgsNurbsCurve]

static findNurbsCurveForVertex(geom: QgsAbstractGeometry | None, vid: QgsVertexId)[source]

Finds the NURBS curve containing the vertex identified by vid.

Parameters:
Return type:

(Optional[QgsNurbsCurve], int)

Returns:

  • the NURBS curve containing the vertex, or None if the vertex is not part of a NURBS curve

  • localIndex: the control point index within the found NURBS curve