getEdgeList method

List<Vec4f> getEdgeList()

Implementation

List<Vec4f> getEdgeList() {
  return using<List<Vec4f>>((arena) {
    final pv = arena<ffi.Pointer<cvg.Vec4f>>();
    final psize = arena<ffi.Size>();
    cvRun(() => cffi.Subdiv2D_GetEdgeList(ref, pv, psize));
    return List.generate(psize.value, (i) {
      final v = pv.value[i];
      return Vec4f(v.val1, v.val2, v.val3, v.val4);
    });
  });
}