Function Mesh.opApply

Iterates over all triangles in the mesh.

int opApply(
  scope int delegate(dlib.geometry.triangle.Triangle) dg
);

Parameters

NameDescription
dg Delegate to call for each triangle.

Returns

0 if iteration completed, or the value returned by the delegate if nonzero.