Houdini vex清除过远的离散点(outliers)

int np[] = nearpoints(0,@P,chf("filter_dist"));
i@nnp = len(np);
if(len(np) < chi("filter_num"))
{
    removepoint(0, @ptnum);
}

filter dist控制最小距离
filter num控制最小邻居数目

你可能感兴趣的:(houdini,算法)