Subdiv2D class

Inheritance
Available extensions

Constructors

Subdiv2D.empty()
factory
Subdiv2D.fromPointer(Subdiv2DPtr ptr)
factory
Subdiv2D.fromRect(Rect rect)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
no setterinherited
ptr Pointer<Subdiv2D>
getter/setter pairinherited
ref → Subdiv2D
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
edgeDst(int edge) → (int, Point2f)
Returns the edge destination.
edgeOrg(int edge) → (int, Point2f)
Returns the edge origin.
findNearest(Point2f pt) → (int, Point2f)
Finds the subdivision vertex closest to the given point.
getEdge(int edge, int nextEdgeType) int
Returns one of the edges related to the given edge.
getEdgeList() List<Vec4f>
Returns a list of all edges.
getLeadingEdgeList() VecI32
Returns a list of the leading edge ID connected to each triangle.
getTriangleList() List<Vec6f>
Returns a list of all triangles.
getVertex(int vertex) → (Point2f, int)
Returns vertex location from vertex ID.
getVoronoiFacetList(VecI32 idx) → (VecVecPoint2f, VecPoint2f)
Returns a list of all Voronoi facets.
initDelaunay(Rect rect) → void
Creates a new empty Delaunay subdivision.
insert(Point2f pt) int
Insert multiple points into a Delaunay triangulation.
insertVec(VecPoint2f pv) → void
Insert a single point into a Delaunay triangulation.
locate(Point2f pt) → (int, int, int)
Returns the location of a point within a Delaunay triangulation.
nextEdge(int edge) int
Returns next edge around the edge origin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotateEdge(int edge, int rotate) int
Returns another edge of the same quad-edge.
symEdge(int edge) int
https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#aabbb10b8d5b0311b7e22040fc0db56b4
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

finalizer NativeFinalizer
final

Constants

NEXT_AROUND_DST → const int
NEXT_AROUND_LEFT → const int
NEXT_AROUND_ORG → const int
NEXT_AROUND_RIGHT → const int
PREV_AROUND_DST → const int
PREV_AROUND_LEFT → const int
PREV_AROUND_ORG → const int
PREV_AROUND_RIGHT → const int
PTLOC_ERROR → const int
PTLOC_INSIDE → const int
PTLOC_ON_EDGE → const int
PTLOC_OUTSIDE_RECT → const int
PTLOC_VERTEX → const int