getVoronoiFacetListAsync method
Returns a list of all Voronoi facets.
https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#a3a9e080423475be056a79da4c04741ea
Implementation
Future<(VecVecPoint2f facetList, VecPoint2f facetCenters)> getVoronoiFacetListAsync(VecI32 idx) async =>
cvRunAsync2(
(callback) => cffi.Subdiv2D_GetVoronoiFacetList_Async(ref, idx.ref, callback),
(completer, p, p1) => completer.complete(
(
VecVecPoint2f.fromPointer(p.cast<cvg.VecVecPoint2f>()),
VecPoint2f.fromPointer(p1.cast<cvg.VecPoint2f>())
),
),
);