getVoronoiFacetListAsync method

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

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>())
        ),
      ),
    );