示例#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;
            }
        }
示例#2
0
 public PointCloudOfXYZ(PointCloudOfXYZ cloud, Std.VectorOfInt indices)
     : this(Invoke.pointcloud_xyz_ctor_indices(cloud.Ptr, indices.Ptr))
 {
 }