Class: QgsVertexId¶
- class qgis.core.QgsVertexId[source]¶
Bases:
object- class VertexType(*values)¶
Bases:
IntEnumTypes of vertex.
Added in version 3.22.
Segment: The actual start or end point of a segmentAvailable as
QgsVertexId.SegmentVertexin older QGIS releases.Curve: An intermediate point on a segment defining the curvature of the segmentAvailable as
QgsVertexId.CurveVertexin older QGIS releases.
- isValid(self) bool[source]¶
Returns
Trueif the vertex id is validisValid(self, geom: Optional[QgsAbstractGeometry]) -> bool Returns
Trueif this vertex ID is valid for the specifiedgeom.- Return type:
bool
- part: int¶
- partEqual(self, o: QgsVertexId) bool[source]¶
Returns
Trueif this vertex ID belongs to the same part as another vertex ID.- Parameters:
o (QgsVertexId)
- Return type:
bool
- ring: int¶
- ringEqual(self, o: QgsVertexId) bool[source]¶
Returns
Trueif this vertex ID belongs to the same ring as another vertex ID (i.e. the part and ring number are equal).- Parameters:
o (QgsVertexId)
- Return type:
bool
- type: VertexType¶
- vertex: int¶
- vertexEqual(self, o: QgsVertexId) bool[source]¶
Returns
Trueif this vertex ID corresponds to the same vertex as another vertex ID (i.e. the part, ring number and vertex number are equal).- Parameters:
o (QgsVertexId)
- Return type:
bool