getVertex method

(Point2f, int) getVertex(
  1. int vertex
)

Implementation

(Point2f rval, int firstEdge) getVertex(int vertex) {
  return using<(Point2f, int)>((arena) {
    final pp = calloc<cvg.Point2f>();
    final p = arena<ffi.Int>();
    cvRun(() => cffi.Subdiv2D_GetVertex(ref, vertex, p, pp));
    return (Point2f.fromPointer(pp), p.value);
  });
}