| 2.1.18.24 xyz_remove_duplicates
 DescriptionRemove duplicated points.
 Syntaxint xyz_remove_duplicates( UINT n, double * x, double * y, double * z, int nMethod = Remove_With_Mean, double dPrecision = 1.0e-8 ) Parameters n[input] the number of scatters x[modify] the X-coordinates of the points y[modify] the Y-coordinates of the points z[modify] the Z-coordinates of the points nMethod[input] the method to calculate the Z value on the duplicates.0 replace with mean1 median2 min3 max4 sum dPrecision[input] tolerance to determine whether two points are duplicated.
 Returnreturn the number of unique points in (x,y,z).
 ExamplesEX1
 #include <wks2mat.h>        
void    xyz_remove_duplicates_ex1()
{
    vector vX = {1, 2, 3, 4, 6, 6, 6, 3, 6, 5};
    vector vY = {1, 2, 3, 4, 6, 5, 6.00001, 3, 6, 4};
    vector vZ = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    double dPrec = 1e-7;
    int nPoints = xyz_remove_duplicates(vX.GetSize(), vX, vY, vZ, 0, dPrec);
    out_int("Number of unique points : ", nPoints);
}RemarkSee AlsoHeader to Includedwks2mat.h
 Reference |