getVoronoiFacetListAsync method

Future<(VecVecPoint2f, VecPoint2f)> getVoronoiFacetListAsync(
  1. VecI32 idx
)

Implementation

Future<(VecVecPoint2f facetList, VecPoint2f facetCenters)> getVoronoiFacetListAsync(VecI32 idx) async =>
    cvRunAsync2(
      (callback) => cimgproc.Subdiv2D_GetVoronoiFacetList_Async(ref, idx.ref, callback),
      (completer, p, p1) => completer.complete(
        (
          VecVecPoint2f.fromPointer(p.cast<cimgproc.VecVecPoint2f>()),
          VecPoint2f.fromPointer(p1.cast<cimgproc.VecPoint2f>())
        ),
      ),
    );