public void setPlaneProperties()
    {
        int u=0;
        objectCenter.x=0;
        objectCenter.y=0;
        objectCenter.z=0;
        for (int i=0;i<hpc;i++)
        {
            int k=hindex[i];
            if (k>=1000)
                continue;
            u++;
            hplist[k].setCenter();
            hplist[k].setGeom();
            VA._add(objectCenter,hplist[k].CP);
        }
        VA._scale(objectCenter,1.0/u);
        objectRadius=0;
        for (int i=0;i<hpc;i++)
        {
            int k=hindex[i];
            if (k>=1000)
                continue;
            double r=VA.dist(hplist[k].CP,objectCenter);
            if (r>objectRadius)
                objectRadius =r;
        }
        //choose the normals outward
        for (int i=0;i<hpc;i++)
        {
            int k=hindex[i];
            if (k>=1000)
                continue;
            hplist[k].adjustCenterSide(objectCenter);
        }
    }