fix: modify downsampling condition
This pr modifies the downsamling condition:
old logic: the downsampling function will throws error and kills when it is set to true and the size of boundary points to be downsampled is less than 2.
new logic: the downsampling process will be skipped and just throw warning when it is set to true and the size of boundary points to be downsampled is less than 2.