示例#1
0
        public static unsafe void CopyTo(this PointCloudOfXYZRGBA @this, PointCloudOfXYZ other)
        {
            if (@this.Count != other.Count)
            {
                throw new ArgumentOutOfRangeException(nameof(other), "lengths must match");
            }

            var count = @this.Count;

            var tptr = @this.Data;
            var optr = other.Data;

            for (var i = 0; i < count; i++)
            {
                (optr + i)->V = (tptr + i)->V;
            }
        }
 public PointCloudOfXYZRGBA(PointCloudOfXYZRGBA cloud, Std.VectorOfInt indices)
     : this(Invoke.pointcloud_xyzrgba_ctor_indices(cloud.Ptr, indices.Ptr))
 {
 }