void setRayNum ( int rays ) { if ( rays < MIN_RAYS ) rays = MIN_RAYS ; rayNum = rays ; vertexNum = rays + 1 ; segments = new float [ vertexNum * 8 ] ; mx = new float [ vertexNum ] ; my = new float [ vertexNum ] ; f = new float [ vertexNum ] ; }
Internal method for mesh update depending on ray number