Class: QgsNurbsUtils¶
Utility functions for working with NURBS curves.
Added in version 4.0.
List of all members, including inherited members
Methods
Extracts the first NURBS curve found in the geom (recursively). |
Static Methods
Returns |
|
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
Trueif thegeomcontains 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). ReturnsNoneif no NURBS curve is found.- Parameters:
geom (Optional[QgsAbstractGeometry])
- Return type:
- static findNurbsCurveForVertex(geom: QgsAbstractGeometry | None, vid: QgsVertexId)[source]¶
Finds the NURBS curve containing the vertex identified by
vid.- Parameters:
geom (Optional[QgsAbstractGeometry]) – the geometry to search in
vid (QgsVertexId) – the vertex identifier to search for
- Return type:
(Optional[QgsNurbsCurve], int)
- Returns:
the NURBS curve containing the vertex, or
Noneif the vertex is not part of a NURBS curvelocalIndex: the control point index within the found NURBS curve