VecPoint3i.generate constructor
Implementation
factory VecPoint3i.generate(int length, Point3i Function(int i) generator, {bool dispose = true}) {
final pp = calloc<cvg.VecPoint3i>()..ref.length = length;
pp.ref.ptr = calloc<cvg.Point3i>(length);
for (var i = 0; i < length; i++) {
final v = generator(i);
pp.ref.ptr[i] = v.ref;
if (dispose) v.dispose();
}
return VecPoint3i.fromPointer(pp);
}