More reasonable orientation weight

max length of xyz sampling box.
Add smoothing